Nyall Dawson
9c06d86ad8
Fix some HIG string violations
2018-03-22 12:32:08 +10:00
Nyall Dawson
2571de37bb
Fix some undersized widgets on hidpi win builds
2018-02-20 11:01:21 +11:00
Juergen E. Fischer
c3573b1636
more translation string fixes and updates
2018-02-17 11:33:36 +01:00
Alessandro Pasotti
f3349616fa
Change button color when picking around
...
So that we have a consistent behavior with the
Sample Color action.
2018-02-16 10:18:30 +01:00
Alessandro Pasotti
948452b78a
[bugfix] Restore color picker from layer styling panel
...
Fixes #17721
Successfully tested on Windows 10 and Linux with Qt 5.10
2018-02-15 15:24:50 +01:00
Nyall Dawson
2682a74a1b
Fix clazy pass big type by ref, small by value warnings
2018-02-02 19:52:01 +11:00
Nyall Dawson
09fbdb1bc2
Drop color button/dialog live update option from API and UI
...
This options is broken in QGIS 3.0, but in any case has been
mostly made redundant by the live styling dock, and the other
non blocking color pickers which are implemented in most areas
of qgis now.
2018-01-15 12:40:44 +10:00
Nyall Dawson
a15b54d997
Swap missing 0->nullptr and add missing overrides
2017-12-12 21:14:58 +11:00
Alessandro Pasotti
656de62e70
Use screen to grab instead of deprecated grabWidget
2017-11-29 22:04:54 +01:00
Alessandro Pasotti
7ae8e16427
[bugfix][hidpi] Scalable SVG theme cursors
...
Add support for SVG cursor:
ZoomIn,
ZoomOut,
Identify,
CrossHair,
CapturePoint,
Select,
Sampler,
Icons are provisional: they need some love from
a decent graphics designer.
Fixes #12671
2017-11-27 11:51:48 +01: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
ba64e3e533
Remove redundant initializations
...
Fixes when a member is initialized both in the header and
source to the same initial value
(via clang-tidy modernize-use-default-member-init fixit)
2017-09-11 17:09:35 +10:00
Nyall Dawson
2d192791c2
qMin/qMax -> std::min/max
2017-08-25 16:37:54 +10:00
Tim Sutton
6f7ef8ac2e
[FEATURE] Colourblind preview modes now work on OSX ( #4971 )
...
* [FEATURE] Colourblind preview modes now work on OSX
* Enable colour picker widgets on Mac OS and colour preview modes in composer in Mac OS
2017-08-06 14:31:36 +02:00
Nyall Dawson
082dafe22d
Fix infinitely growing widgets
...
Fixes #16849
2017-08-03 00:46:33 +10:00
Matthias Kuhn
875a5d6d9d
Merge pull request #4818 from DelazJ/spelling
...
Fix some spelling issues
2017-07-08 10:20:40 +02:00
Nyall Dawson
eb8f91a556
Fix some button sizes on hidpi displays
2017-07-07 18:17:40 +10:00
Harrissou Sant-anna
0c967927ef
Replace "drop down" and some dropdown by drop-down
2017-07-07 01:26:38 +02:00
Nyall Dawson
94829206d1
Flip 'alpha' to 'opacity' in gui API
2017-05-30 13:33:09 +10:00
Denis Rouzaud
96151e732a
remove extra SIP_TRANSFERTHIS in cpp files
2017-04-25 14:16:50 +02:00
Mathieu Pellerin
8c20d993f8
sipify qgscolorbutton and qgscolorrampbutton ( #4365 )
...
* get rid of params to get rid of warnings
2017-04-17 16:10:11 +07:00
Nyall Dawson
ae59e35dac
Complete daily allocation of Qt5 connect transitions
2017-04-04 09:40:25 +10:00
Nyall Dawson
620a8394c9
No more old style connects in providers
2017-04-03 10:19:53 +10:00
Alessandro Pasotti
1822caa803
QgsSettings: removed leading slashs from keys
2017-03-08 11:11:47 +01:00
Juergen E. Fischer
a10c890383
More QgsSettings updates:
...
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Denis Rouzaud
e7079eead9
run astyle on src/gui
2017-03-03 09:09:37 +01:00
Nyall Dawson
b5480633e4
Standardise names for static variables
...
All non-const variables are prefixed with "s", all const
statics are ALL_CAPS
2017-01-14 16:40:24 +10:00
Denis Rouzaud
748be8de71
[spelling] replace behaviour by behavior
2017-01-11 11:35:19 +01:00
Nyall Dawson
ef0131dfe3
Optimise destructors (pt 3)
2017-01-02 09:54:33 +10:00
Nyall Dawson
9d4adc1c70
Remove some singletons by moving instances to QgsApplication
...
- QgsColorSchemeRegistry
- QgsDataItemProviderRegistry
- QgsGPSConnectionRegistry
- QgsMessageLog
- QgsPaintEffectRegistry
- QgsPluginLayerRegistry
- QgsRasterRendererRegistry
- QgsRendererRegistry
- QgsSvgCache
- QgsSymbolLayerRegistry
2016-12-28 16:59:03 +10:00
Nyall Dawson
ee55c4bc66
[FEATURE] Show an alpha slider in color button drop down menu
...
Allows quick tweaks to the color alpha
2016-12-09 10:43:40 +10:00
Nyall Dawson
e1e3f86b9e
Fix color picker does not show previous color
2016-10-28 15:07:52 +10:00
Nyall Dawson
4166a3ea62
Fix most clazy qstring-unneeded-heap-allocations warnings
...
By flipping string literals to QStringLiteral/QLatin1String
see
https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Nyall Dawson
fae8071a1e
Fix clazy qstring-arg warnings
...
Avoid chained QString::arg() calls and instead use the multi-arg
overload to save memory allocations
2016-10-22 22:46:15 +10:00
Nyall Dawson
f62a0bfbd6
Fix invalid QString arg warning
2016-09-21 16:10:51 +10:00
Nyall Dawson
31e1661006
Ensure that colors are always added to recent color list from style panel
2016-09-14 19:17:26 +10:00
Nyall Dawson
5ac34ce86b
Restore cancel button in color dialog when used from layer properties
2016-08-23 20:35:52 +10:00
Nyall Dawson
cd4bc8887b
Vertically stack the color widget when in dock mode
2016-08-16 19:47:28 +10:00
Nyall Dawson
5407ae8a6a
[FEATURE] Color dialog can be embedded in layer style panel
...
Now clicking color buttons inside the layer style panel causes
the color picker dialog to be opened inside the style panel itself
rather than as a separate dialog
2016-08-15 18:04:07 +10:00
Nyall Dawson
26c1e09a58
Remove QgsColorDialog, rename QgsColorDialogV2 to QgsColorDialog
...
The last bits of missing functionality (handling native dialogs
and live updates) were ported across.
2016-08-06 13:24:36 +10:00
Denis Rouzaud
c16d1393a2
removed V2 from QgsSymbolLayerV2*
2016-08-05 08:18:01 +02:00
Denis Rouzaud
3e197ae74a
remove QgsColorButton in favor of V2
2016-08-04 14:27:31 +02:00
Matthias Kuhn
4d9f3ff806
Fix inadequate usage of nullptr
2016-07-22 22:04:51 +02:00
Nyall Dawson
576875e998
Followup 320c696 use clang-modernize to replace 0/NULL use with nullptr
2015-12-15 11:24:51 +11:00
Nyall Dawson
5ed3d1b73f
Use QString::arg multi argument method to avoid extra heap allocations
2015-10-15 17:51:06 +11:00
Nyall Dawson
c49b5b777f
Change a lot of arguments to const references in core/gui
...
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Denis Rouzaud
9e3183c63f
Revert "sort includes"
...
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73
sort includes
2015-06-10 13:59:08 +02:00
Anatoliy Golubev
d5d4a5adeb
Q_WS_* macros removed from Qt5, to determine platform use Q_OS_* macroses which exists in Qt4 and Qt5
2014-12-23 12:34:21 +03:00
Juergen E. Fischer
82b6e0342a
cosmetic cleanups, typo fixes, formatting
2014-10-21 01:33:20 +02:00