Matthias Kuhn
82455588c8
General include cleanup
...
This unifies the way the include directories are handled in the
CMakeLists.txt files.
Paths are now normally relative to the root of the source- or build dir.
They may still be relative for paths withing a plugin subdirectory but
should no longer be relative to paths outside of the current source- or
build-directory.
The previous approach had resultet in many different styles which are
hard to wrap ones head around if new to the build system.
It sometimes defined includes twice
By using relative paths, it was not possible to copy paste the paths
between different files.
2017-05-19 07:13:11 +02:00
Juergen E. Fischer
135882259c
include metadata headers in install (followup 3a965e6d)
2017-05-08 13:21:23 +02: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
Nyall Dawson
3c4a9fd419
Daily connectification
2017-04-05 09:53:50 +10:00
Juergen E. Fischer
b9162dccdf
scripts/astyle-all.sh run
2017-03-03 15:37:12 +01:00
Nyall Dawson
20c07a58e6
Remove support for disabling OTF reprojection
...
Because
- OTF reprojection is mature and stable
- Should be no cost when not required - transforms are shortcut
when not required
- Reduces code complexity
- Canvas OTF support was being incorrectly used as a flag for
whether measurements should be made in ellipsoidal mode. Instead
the project's ellipsoid setting should be checked for this.
- Should simplify behavior for new users
2017-03-01 07:29:35 +10:00
Andreas Sturmlechner
f9a064310a
Don't link to QtWebKit when it's disabled
2017-02-24 11:10:11 +01:00
Denis Rouzaud
7812d4fb17
remove the-prefix from source code
...
this might result in variables having the same name as some methods
2017-02-21 18:14:58 +01:00
Nyall Dawson
d19e70700f
Ensure all pointer variables are initialized to nullptr
2017-02-18 20:23:18 +10:00
Nyall Dawson
7b14373a8e
Fix some coverity uninitialized variable warnings
2017-01-27 09:55:12 +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
6c74e4ea5d
spelling fixes
2017-01-12 22:01:50 +01:00
Denis Rouzaud
748be8de71
[spelling] replace behaviour by behavior
2017-01-11 11:35:19 +01:00
Matthias Kuhn
0302719cf0
Add qgis_core.h to with CORE_EXPORT macro
...
This removes complexity from the compiler flags because defines
happen in a file.
2017-01-05 00:12:11 +01:00
Martin Dobias
6c5956b22b
QgsProject: cleanup of read/write method + removal of unused bad layer handler class
2017-01-04 20:29:53 +08:00
Matthias Kuhn
dfd9833467
Let all tests work with a proper QgsApplication instance
2016-12-20 01:20:08 +01:00
Martin Dobias
c143be7a73
QgsMapSettings and QgsComposerMap store layers for rendering as weak pointers
...
... instead of using layer IDs which need to be resolved using QgsProject
2016-12-10 18:50:52 +08:00
Martin Dobias
d56a97d4fe
Merge QgsMapLayerRegistry into QgsProject
...
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08: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
83ad380bd6
Switch QT4_* macros to QT5
2016-09-21 09:12:54 +10:00
Nyall Dawson
06d2d79185
Make sure files are truncated before writing
2016-09-14 15:12:36 +10:00
Nyall Dawson
4cfacf14e3
Make API more consistent
...
- rename methods with XML to Xml, CRS to Crs, WMS to Wms, ID to Id
- rename methods with SRS to Crs
- rename methods with abbreviations like "dest" to "destination"
- rename methods with abbreviations like "src" to "source"
2016-07-21 08:40:50 +10:00
Matthias Kuhn
7b3e667282
Remove more debug noise
2016-06-12 16:05:40 +02:00
Nyall Dawson
87c58f4541
Mark more includes as system includes
2016-01-08 16:43:27 +11:00
Nyall Dawson
766bfa1a7f
Fix some more old style cast and float comparison warnings
2015-12-31 07:27:58 +11:00
Nyall Dawson
013d6d3331
Fix more warnings
2015-12-21 19:30:32 +11:00
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