32 Commits

Author SHA1 Message Date
Nyall Dawson
92af1dacaf Replace default constructors/destructors with = default 2017-10-01 06:52:14 +10: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
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
Juergen E. Fischer
b9162dccdf scripts/astyle-all.sh run 2017-03-03 15:37:12 +01:00
Nyall Dawson
d19e70700f Ensure all pointer variables are initialized to nullptr 2017-02-18 20:23:18 +10:00
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00
Harrissou Sant-anna
ef85cdcf83 Replace "eg" by "e.g." or "for example" 2016-12-30 00:03:22 +01:00
Matthias Kuhn
dfd9833467 Let all tests work with a proper QgsApplication instance 2016-12-20 01:20:08 +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
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
Nyall Dawson
2eb95f081f Fix more warnings when building under clang with -wEverything 2016-01-02 11:08:03 +11:00
Nyall Dawson
4f7509530a Remove some unnecessary trailing ;
(Gets rid of annoying squiggle warnings from Qt Creator!)
2015-11-02 18:07:04 +11:00
Juergen E. Fischer
5b54e260d4 various windows test fixes:
* .gitignore sort and remove duplicates
* show more warnings in tests
* add/update masks for rendering checks on windows
* fix delimited text provider tests
* disable QgsLogger and QgsPalLabelingServer on windows
2015-07-05 03:45:01 +02: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
98c601d1ba fix typos 2015-05-25 20:12:02 +02:00
Nyall Dawson
a4d17c0e9b Ignore position of thousands seperators when editing scale combo box
... be more permissive about the conversion from string to number
after a value is entered in the combo box (fix #12385)
2015-03-17 18:56:53 +11:00
Juergen E. Fischer
0f9397028e fix more cppcheck issues 2015-02-07 18:40:42 +01:00
Nyall Dawson
118a9f63dc Add some missing exitQgis() calls to unit tests
Also ensure that compositions are deleted before exiting
Qgis during tests.
2014-12-01 19:52:04 +11:00
Matthias Kuhn
cae6baea90 Formatting of tests 2014-11-21 11:45:33 +01:00
Matthias Kuhn
78c519546a Add Qt5 support 2014-11-21 11:45:32 +01:00
Matthias Kuhn
1c2bdf1ea3 Switch tests to automoc
Required for Qt5 compatibility
Raises minimum CMake version to 2.8.6
2014-11-04 09:18:26 +01:00
Alexander Bruy
8d947e2c86 fix scalecombobox test 2013-10-19 15:13:48 +03:00
Marco Hugentobler
e65f208f36 Modify testqgsscalecombobox to match modified behaviour of QgsScaleComboBox 2013-03-07 08:27:07 +01:00
Magnus Homann
01c4ac7d54 Added setting of scale programatially 2012-09-21 19:14:51 +02:00
Magnus Homann
dbbb3c35be Added test for rounding 2012-09-21 19:14:51 +02:00
Magnus Homann
f059e6f899 Change in qgisapp and fixed a test 2012-09-21 19:14:51 +02:00
Magnus Homann
1b09393bd7 Test of signals 2012-09-21 19:14:51 +02:00
Magnus Homann
08d28df9c2 Simplified, and more test 2012-09-21 19:14:51 +02:00
Magnus Homann
576c0a5e83 Added static helper functions and more tests 2012-09-21 19:14:51 +02:00
Magnus Homann
09d6399b23 First simple test 2012-09-21 19:14:50 +02:00