42 Commits

Author SHA1 Message Date
Juergen E. Fischer
8214608169 more nullptr updates (folloup 320c696) 2015-12-16 16:29:29 +01:00
Nyall Dawson
18614e11e3 Avoid container detachments by using const methods wherever possible
eg QList::at() instead of QList:[], constFind instead of find, ...
2015-12-16 20:15:46 +11:00
Nyall Dawson
b7e1cae4f0 Switch double quoted single character to single quotes for some
QString methods

Using single quotes is a significant performance boost. Rough
benchmarks indicate the QString single quote methods take
about 15% of the time the double quote variants take.
2015-11-02 17:55:08 +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
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
Marco Hugentobler
68fe5f5791 [FEATURE:] New geometry classes 2015-05-25 08:53:49 +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
Juergen E. Fischer
fc22bf19b1 identation update 2015-02-18 08:37:00 +01:00
Nyall Dawson
d4f509f7a2 Avoid some mixing enum types warnings 2015-02-18 17:35:47 +11:00
Nyall Dawson
25652e4228 More Coverity fixes 2015-02-12 07:35:40 +11:00
Nyall Dawson
c253a9f623 Uninitialized variable fixes 2015-02-10 22:23:01 +11:00
Matthias Kuhn
df2cac7640 Merge pull request #1743 from naihil/master
[Qt5-compat] Change Q_WS_* macroses to Q_OS_*
2015-01-05 09:56:15 +01:00
Juergen E. Fischer
841af773e3 remove (outdated) internal spatialite 2015-01-04 16:18:01 +01: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
Martin Dobias
436b05e0cc Move QgsRendererJob subclasses to new files (no code changes) 2014-06-22 21:58:39 +07: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
Larry Shaffer
a37c577fdd Fix 'geos_c.h not found' build error on Mac 2014-02-24 17:02:41 -07: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
Juergen E. Fischer
a51fd5f0ce indentation update 2013-04-15 07:16:20 +02:00
Radim Blazek
34adbe7f56 qgis_bench json log fix; QGIS2 settings 2013-04-08 09:55:06 +02:00
Radim Blazek
ff51b2c9e6 qgis_bench revision log 2013-04-06 10:53:53 +02:00
Radim Blazek
9b83d1a63a qgis_bench wall clock time 2013-04-04 23:45:53 +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
Juergen E. Fischer
98dbb8e0fc use install rpath only on apple 2012-04-20 09:39:36 +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
301d20717d Merge branch 'master' of github.com:qgis/Quantum-GIS 2011-11-27 20:09:23 +02:00
Radim Blazek
dc56ea9b24 maxdev must also be inited 2011-11-27 14:43:31 +01:00
Radim Blazek
03f4ff79f9 array init fix 2011-11-27 12:45:18 +01: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
Juergen E. Fischer
376adc4dab emulate getrusage(2) on windows (borought from PostgreSQL) 2011-11-22 16:02:57 +01: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