35 Commits

Author SHA1 Message Date
Nyall Dawson
04a9cd9211 Add more consistency to doxygen formatting 2017-10-06 08:19:00 +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
Juergen E. Fischer
21f81fb2a2 fix 98c89ccab 2017-04-30 12:01:58 +02:00
Juergen E. Fischer
98c89ccabe also accept uppercase .qgs as project extension (fixes #15871) 2017-04-29 13:53:28 +02: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
Juergen E. Fischer
6a56cb0dd0 updates and fixes for windows qt5/py3 build 2017-01-24 01:25:59 +01:00
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +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
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
ef5110732b Fix clazy "qstring-ref" warnings
From the clazy docs:

Finds places where QString::fooRef() should be used instead of
QString::foo(), to avoid temporary heap allocations

eg

str.mid(5).toInt(ok) // BAD

str.midRef(5).toInt(ok) // GOOD
2016-10-22 22:46:14 +10:00
Juergen E. Fischer
d9349e5bbb update configuration settings to qgis3 2016-10-06 11:40:42 +02:00
Nyall Dawson
013d6d3331 Fix more warnings 2015-12-21 19:30:32 +11:00
Nyall Dawson
f628ebd423 Replace foreach with Q_FOREACH
For:
- consistency
- to make it immediately clear that this is a Qt macro and that it
works slightly differently to c++ for loops
2015-09-09 19:17:29 +10:00
Nyall Dawson
7c10760225 Followup 73ffb83a, finishing changing all Q_FOREACH to references 2015-09-09 19:17:19 +10:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Juergen E. Fischer
fa464111c8 fix grass tests on windows 2015-07-07 23:26:44 +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
Larry Shaffer
12e0f358a8 Set GDAL env vars for when gdal lib is bundled in app on Mac 2015-03-20 11:48:09 -06: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
Matthias Kuhn
78c519546a Add Qt5 support 2014-11-21 11:45:32 +01:00
Carl Simonson
3e0e0edec7 Fix uses of deprecated Qt methods
There are still a few leftovers from the Qt 3 to Qt 4 migration that can
be found by defining QT_NO_DEPRECATED. Here is a summary of the changes:

* QDir::convertSeparators was changed to QDir::toNativeSeparators with Qt 4

* QRexExp::numCaptures was changed to captureCount with Qt 4

* QTextIStream/QTextOStream was merged into QTextStream with Qt 4

* QFileDialog::selectFilter/filters was changed to
  selectNameFilter/nameFilters with Qt 4.4

* qVariantCanConvert/qVariantValue was changed to canConvert/value with Qt
  4

Note that if a conversion to Qt 5 will happen someday, this will have to
be done since Qt 5 removes these deprecations.
2014-03-16 11:16:25 -05:00
Martin Dobias
151bad59cd Update to qgis_bench: use renderer job, allow parallel mode, print other time 2013-12-10 17:31:17 +07:00
Juergen E. Fischer
10f3cf38fa more QuantumGIS => QGIS updates 2013-06-09 18:52:05 +02:00
Juergen E. Fischer
15539f34ce more Quantum GIS => QGIS updates 2013-05-30 16:19:19 +02:00
Matthias Kuhn
9e57117e79 Enable pal label testing to qgis_bench 2013-04-25 10:22:14 +02:00
Radim Blazek
34adbe7f56 qgis_bench json log fix; QGIS2 settings 2013-04-08 09:55:06 +02:00
Juergen E. Fischer
5ae312cfad add 'foreach' to astyle and re-run indentation 2012-08-03 06:57:11 +02:00
Juergen E. Fischer
db1c3d9f4e test cleanups 2012-05-06 15:19:59 +02:00
Tim Sutton
5193f60d2a Revert "Merge branch 'master' of github.com:qgis/Quantum-GIS into qgis-master"
This reverts commit 78ce3cdc84b79dbec5d227db9ee14af6edf9af66, reversing
changes made to 2414a3abbc97483a5355c262a96c4fc353566bcb.
2011-11-30 15:25:43 +02:00
Tim Sutton
0116951cd7 Further updates to places provider registry called pluginPath to make it use providerPath now 2011-11-23 11:49:44 +02:00
Radim Blazek
84964942c7 Dont use QgsApplication, --prefix, json fix 2011-11-21 20:36:27 +01:00
Radim Blazek
555e028e73 benchmark program 2011-11-20 13:43:21 +01:00