Denis Rouzaud
03edc407b1
rename QgsSettings::enumSettingValue to enumValue
...
no python API break
2018-02-26 02:32:44 -09:00
Denis Rouzaud
1a1b197ced
use Qgsettins::enumSettingValue where possible
2018-02-19 05:55:09 -09: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
422963e995
Replace use of deprecated QMouseEvent::posF()
2017-09-05 14:03:34 +10:00
Nyall Dawson
2d192791c2
qMin/qMax -> std::min/max
2017-08-25 16:37:54 +10:00
Nyall Dawson
c19418c447
Add more missing std:: prefixes
2017-08-25 04:13:38 +10:00
Nyall Dawson
b5ca4b4ea8
(q)sqrt -> std::sqrt
2017-08-25 03:22:15 +10:00
Nyall Dawson
fec03ca423
(q)sin -> std::sin
2017-08-25 03:18:05 +10:00
Nyall Dawson
8c64d80a07
(q)floor -> std::floor
2017-08-25 03:12:36 +10:00
Nyall Dawson
2e5d1abbb1
(q)cos -> std::cos
2017-08-25 03:05:22 +10:00
Nyall Dawson
7c5aa050d1
(q)ceil -> std::ceil
2017-08-25 03:01:48 +10:00
Nyall Dawson
77c3be97e3
Make sure (f)abs are prefixed with std::
2017-08-25 02:35:28 +10:00
Nyall Dawson
4b009f96ec
Use std::round instead of qRound
...
Now that our minimum VS studio version allowed supports std::round,
we should use that in place of Qt's qRound method.
Because:
- it doesn't truncate to int, resulting in unpredictable
behaviour (refs #16925 )
- better to stick to standard c++ methods wherever possible,
since they're likely better supported and optimised by the
compilers
- it's a tiny reduction to the barrier for entry to QGIS
development (I'm sick of pointing out the need to use
qRound during PR reviews!)
2017-08-25 02:35:27 +10:00
Nyall Dawson
11dd4170de
Try to balance UI element sizes on windows builds
2017-07-26 14:46:30 +10:00
Nyall Dawson
f121286e38
Fix size of some color widgets on hidpi displays
2017-07-25 12:53:04 +10:00
Nyall Dawson
bbec00f132
Fix mouse wheel modifications to colors in QgsColorRampWidget
2017-06-02 08:36:41 +10:00
Nyall Dawson
ae59e35dac
Complete daily allocation of Qt5 connect transitions
2017-04-04 09:40:25 +10:00
Nyall Dawson
236f44dd4e
Avoid extra frame drawn around color wheel in menus
...
Not needed, and looks very ugly with Qt5 styling
2017-03-10 10:18:55 +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
Nyall Dawson
ef0131dfe3
Optimise destructors (pt 3)
2017-01-02 09:54:33 +10:00
Matthias Kuhn
35d106bf64
Fix Qt 5.7 build warnings
2016-11-11 08:56:12 +01: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
Denis Rouzaud
c16d1393a2
removed V2 from QgsSymbolLayerV2*
2016-08-05 08:18:01 +02:00
Nyall Dawson
d3582abbf6
[FEATURE] Mouse wheel over sliders in color dialog to change value by
...
increments
2016-07-11 10:27:16 +10:00
Juergen E. Fischer
b514f521e6
cppcheck fixes
2016-05-16 14:14:14 +02:00
Nyall Dawson
c3a57434d9
Fix clazy 'pass small and trivially-copyable type by value' warnings
2016-02-02 19:47:21 +11:00
Juergen E. Fischer
490236f2f2
spelling fixes
2016-02-02 02:37:15 +01: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
2377688c6c
Add QgsColorWidgetAction for easily inserting QgsColorWidgets in menus
2015-12-09 16:07:22 +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
Juergen E. Fischer
a264a27dfb
fix windows build (pow called with an integer) and comma cosmetics
2015-02-08 13:15:42 +01:00
Matthias Kuhn
78c519546a
Add Qt5 support
2014-11-21 11:45:32 +01:00
Juergen E. Fischer
a57066a48d
* fix cppcheck warnings
...
* some sip updates
* [API] fix spelling QgsMultiRenderChecker::drawBackround
* [API] fix spelling QgsSymbolLayerV2Utils::drawStippledBackround
* [API] fix spelling QgsMapSettings::layerTransfrom
2014-11-20 15:02:35 +01:00
Juergen E. Fischer
82b6e0342a
cosmetic cleanups, typo fixes, formatting
2014-10-21 01:33:20 +02:00
Nyall Dawson
fd92dd95aa
[color picker] Clicking the previous color should reset to that color
2014-09-30 20:37:28 +10:00
Nyall Dawson
dce206e374
[FEATURE] New custom QGIS color picker dialog. Basically
...
it's a Frankenstein's monster of the best bits of lots of other color
picker implementations. Features include:
- Sliders for hue, saturation, value, red, green, blue color components
- Alpha slider
- Option to copy/paste html color codes (in a variety of formats)
- Before/after color preview, with alpha preview
- Interactive 2D color ramp widget
- Hue wheel/triangle widget
- Editable color swatch lists
- Live color sampler with option to sample over a set radius
- Supports interaction with other apps via drag and drop of colors (OS support
dependant)
- Option to disable the dialog and use the native picker dialog instead (TODO:
make the dialog so awesome that even @dakcarto switches across...)
Credit for icons goes to 3nids!
2014-09-16 23:00:06 +10:00
Nyall Dawson
e5f078ed8f
Fix loss of hue information with slider widgets
2014-09-16 19:47:37 +10:00
Nyall Dawson
e9d7b520db
Support dragging colors from QgsColorPreviewWidget
2014-09-11 21:56:48 +10:00
Nyall Dawson
c4c58ab342
Accept dropped colors on color widgets
2014-09-11 21:11:04 +10:00
Nyall Dawson
c159c57000
Retain alpha if entering colors with no explicit alpha into
...
QgsColorTextWidget
2014-09-11 20:12:02 +10:00
Nyall Dawson
b9fc2b51d9
Add a bunch of useful interactive color widgets to GUI, including
...
color wheels, ramps, boxes, and text edits.
2014-09-09 21:31:43 +10:00