284 Commits

Author SHA1 Message Date
Alessandro Pasotti
e9520311fb Use default QLocale instead of system
no effect for now, but it makes the locale override
possible through QLocale::setDefault()
2018-06-12 15:19:24 +02:00
Nyall Dawson
b69389b650 Run clang-tidy modernization checks 2018-06-05 12:50:39 +10:00
Nyall Dawson
99d0b3c337 More spell checks 2018-05-08 09:33:07 +10:00
Matthias Kuhn
10db1c8f0e A bit more RAII 2018-04-09 13:10:47 +02:00
Nyall Dawson
d6eeabf69b Make sure we don't have a dirty blank project after QGIS launch 2018-03-11 08:44:51 +11:00
Juergen E. Fischer
dcfe5ca63f update translation strings 2018-02-18 17:35:34 +01:00
Alessandro Pasotti
0310c1d253
Merge pull request #6354 from elpaso/NathanW2-settings_17670
Nathan w2 settings 17670
2018-02-16 09:57:58 +01:00
Alessandro Pasotti
79a924ef5c Spelling and docs 2018-02-15 09:25:26 +01:00
Denis Rouzaud
31e93aecae [dxf] use a struct instead of QPair for layers
there was a crash in Python in QgsDxfExport.addLayers due to a bad conversion
2018-02-12 09:22:21 -04:00
Nathan Woodrow
3207600958 Don't call init in QgsApplication 2018-02-12 16:34:34 +10:00
Nathan Woodrow
3b6d37fee0 Lets try fix this 2018-02-12 15:17:17 +10:00
Harrissou Sant-anna
c3f4fcb1b4
Rename command line dxf-preset option into dxf-map-theme 2018-01-09 10:25:34 +01:00
Borys Jurgiel
8dfb17d5d5 Store QGISCUSTOMIZATION3.ini next to QGIS3.ini in the profile directory. Fixes #17794. (#5999) 2018-01-08 14:41:19 +10:00
Nathan Woodrow
00dbc73d43 Setup QgsSettings in the correct order
We don't have the location of QGIS.ini until we know the profile
so we can't use QgsSettings to get the global settings before this.
2017-12-18 16:28:36 +10:00
Nathan Woodrow
3046979a5f
Add first run and settings migration screen (#5838) 2017-12-12 20:39:15 +10:00
Nyall Dawson
15e7d57f97 Hide "whats this" buttons on all dialogs on Windows
Since it's totally useless and does nothing at all.

*Requires Qt >= 5.10
2017-12-08 11:08:27 +10:00
Nyall Dawson
11f610b7ba Fix build using mingw
Credit to t-hey
2017-12-05 08:01:49 +11:00
Larry Shaffer
4c78526203
Merge pull request #5531 from boundlessgeo/fix-libpaths-update
Fix updating QgsApplication::libraryPaths; load before any Qt plugin use

Note: could possibly be moved to QgsApplication::init()
2017-11-09 14:24:38 -07:00
Nathan Woodrow
ee59abf030
Improved out of process crash handler (#5543)
* Add out of process crash handler for better crash handling.
2017-11-06 15:18:07 +10:00
Larry Shaffer
29c71f43af
Fix updating QgsApplication::libraryPaths; load before any Qt plugin use
Previously, it was happening after setting the default window icon.

For macOS, refactor libraryPaths update to ensure both QT_PLUGIN_PATH
and qt.conf are properly honored (fixes 4.5 year old bug), with
prioritization of qgis libs or libs shipped with .app bundle.
2017-11-04 10:55:35 -06:00
Nyall Dawson
7dc48f3a17
Merge pull request #5508 from DelazJ/message_spacing
Fixing messages displayed in GUI
2017-11-02 08:13:25 +11:00
Nyall Dawson
7843d22bde Fix memory leaks 2017-10-30 21:13:41 +10:00
Nathan Woodrow
90857b2b18 [FEATURE] Settings migration framework (#5080)
Only run for default profile and only if
not run before. Moves settings and symbols from
QGIS 2.x to QGIS 3 default profile

* --version-migration flag to force migration
2017-10-27 20:14:15 +10:00
Harrissou Sant-anna
cd178325d7 Add missing space for readability and fix punctuation 2017-10-27 01:43:26 +02:00
Matthias Kuhn
ef2d17f956
No forced rendering on startup 2017-10-26 15:30:40 +02:00
Nyall Dawson
24a9c522e3 Move qgsAsConst to qgis::as_const
So it's more inline with the std::as_const implementation which
it fills in for, and allows us to 'polyfill' other c++>11
features into the qgis:: namespace.
2017-10-13 19:47:37 +10:00
Blottiere Paul
1fb9f2ae01 Ignore archive files given as layername in command line 2017-10-09 05:39:22 +01:00
Nyall Dawson
04a9cd9211 Add more consistency to doxygen formatting 2017-10-06 08:19:00 +10:00
Matthias Kuhn
8e7db5488f
Range based for loop 2017-09-29 17:37:35 +02:00
Nyall Dawson
8c3939e756 More efficient use of QStrings
- use .isEmpty() instead of == QLatin1String( "" ) to check for
empty strings
- use .clear() instead of = QLatin1String( "" ) to empty a string
- remove unnecessary QString initializations
2017-09-28 05:25:51 +10:00
Nyall Dawson
a87d352bd7 Run clang-tidy modernize-use-default-member-init to move member
initialization to headers (c++11 style)
2017-09-27 05:02:34 +10:00
Nyall Dawson
31c1ae1c6a Add missing QStringLiterals 2017-09-25 17:12:03 +10:00
Jorge Gustavo Rocha
273243b4c4 Add XYZ connection to provide default OpenStreetMap tiles 2017-08-07 22:55:28 +02:00
Alessandro Pasotti
4de141e73f Minor fix in comment text 2017-07-25 10:09:42 +02:00
Nathan Woodrow
12c634cef3 Load default profile name from global
Also adds overrideLocalProfile to ignore local profiles.ini file
2017-07-24 14:52:10 +10:00
Nathan Woodrow
e37f682cca Also load profiles-path from global settings 2017-07-24 14:20:09 +10:00
Nathan Woodrow
7b92f1f1e4 [FEATURE] Add user profiles.
All user settings/plugins, etc are now loaded from APPDATA for each
platform and no longer .qgis3 and are isolated from each other.
 This allows for different profiles depending on what the user of QGIS
needs, e.g test, prod, demo, etc

Profile menu allows for switching between profiles, or creating new
ones.
2017-07-24 13:20:01 +10:00
Juergen E. Fischer
74407dc697 crash report: fix report on 64bit 2017-07-21 00:02:37 +02:00
Juergen E. Fischer
4f9a9e0360 s/( )/()/; s/== /== /; s/!= /!= /; 2017-07-19 09:19:37 +02:00
Sandro Mani
f405b96ddd Demote translation loading warning to debug msg
(forward port from Sourcepole's fork)
2017-07-18 09:37:28 +10:00
Nyall Dawson
64575b3a09 Silence some more gcc fallthrough warnings (no real issues) 2017-07-13 08:28:15 +10:00
Nyall Dawson
1be5fbda96 More consistency across scale API
Use a real scale widget for point displacement label scale
2017-06-09 10:26:01 +10:00
Nathan Woodrow
5e3c6e54be Fix space 2017-05-05 15:55:04 +01:00
Nathan Woodrow
52093a58c6 Fix symbol path for osgeo4w installs 2017-05-06 00:37:49 +10:00
Nyall Dawson
50680249ed Merge pull request #4397 from nyalldawson/no_adawaita
Block use of the Adwaita themes if we can avoid them
2017-05-04 07:31:23 +10:00
Juergen E. Fischer
21f81fb2a2 fix 98c89ccab 2017-04-30 12:01:58 +02:00
Larry Shaffer
d3ea19eaad Enable hidpi support on macOS by default 2017-04-29 21:21:20 +02:00
Juergen E. Fischer
98c89ccabe also accept uppercase .qgs as project extension (fixes #15871) 2017-04-29 13:53:28 +02:00
Nyall Dawson
98e25d178c Block use of the Adwaita themes if we can avoid them
The Qt variants of these GTK themes are VERY broken
for apps like QGIS. E.g. oversized controls like
spinbox widgets prevent actually showing any actual CONTENT
in these widgets, leaving a very bad impression of QGIS

Keeping a consistent DE theme is nice and all, but if
it leaves QGIS in an unusable state then it's misguided.

*Blame resides with gnome's obsession with "touch friendly"
tablet style widgets
2017-04-24 10:02:45 +10:00
Nathan Woodrow
bfcf2528e0 Add QgsCrashHandler for single place for all platforms (#4395)
Add QgsCrashHandler for single place for all platforms
2017-04-23 23:41:33 +10:00