12 Commits

Author SHA1 Message Date
Nyall Dawson
08a9bcba0a Unify scale widgets API
Flip all scale based widgets to use scale denominators instead
of actual scales (ie 100.0 instead of 0.01 for 1:100).

This is done for consistency with the rest of the API, which
predominantly uses scale denominators. It also helps
precision loss as a result of multiple 1.0 / scale conversions
throughout the code.

Refs #15337
2017-06-09 09:11:10 +10:00
Etienne Trimaille
e4d2f34f3f sipify QgsScaleCombobox 2017-04-30 21:00:52 +02:00
Patrick Valsecchi
4f18701d31 Add check to make sure minScale<=maxScale.
Those two fields are present in the vector layer properties. It
was possible to set a minScale bigger than the maxScale.
Now, the maxScale is forced to minScale if the user tries to
set it to a lower value.
2016-03-18 08:12:16 +01:00
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01: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
Nyall Dawson
3c71498c3e Add some missing /TransferThis/ to sip bindings for QObject parents 2015-02-18 17:35:47 +11:00
Juergen E. Fischer
9ceb5ceab6 sip sync 2014-11-21 01:17:21 +01:00
Juergen E. Fischer
f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00
Magnus Homann
d1c8884ca1 Added SIP, fixed qgisapp to use new setter and optimized a bit 2012-09-21 19:14:51 +02:00
Alexander Bruy
fbb7b3c4e0 [FEATURE] editable global scales list 2012-07-18 10:00:31 +03:00
Alexander Bruy
838ac1d9ad fix typo 2012-01-10 15:53:02 +02:00
Alexander Bruy
b30f2b65b6 move map scale selector to QgsScaleComboBox class. Highlight nearest
value to the current scale when open selectors popup
2012-01-10 15:50:48 +02:00