37003 Commits

Author SHA1 Message Date
Denis Rouzaud
0d1b7dc71d add missing QScintilla includes 2017-02-07 07:41:43 +01:00
Mathieu Pellerin
6f2045fd84 fix QgsProject::readNumEntry() validity check (#4112) 2017-02-07 11:32:23 +07:00
Nyall Dawson
0f5b3fd129 Merge pull request #4110 from nyalldawson/label_cache
[FEATURE] Cache labeling result to avoid unnecessary redraws when refreshing canvas
2017-02-07 14:29:32 +10:00
Nyall Dawson
61523c8124 Update label test masks following sort algorithm change
std::sort is returning a slightly different sort order when
label z order (or label cost) is equal

Given that the order in these cases is effectively arbitrary
I've updated the test masks to accept either order.
2017-02-07 14:08:02 +10:00
Nyall Dawson
57d6f6d068 Merge pull request #4107 from DelazJ/tips
Update Startup tips
2017-02-07 13:25:42 +10:00
Nyall Dawson
f3d53b8de9 Fix inefficient code 2017-02-07 13:03:18 +10:00
Nyall Dawson
a43abeced4 Fix failing test 2017-02-07 12:58:22 +10:00
Nyall Dawson
3ed6f5b72a Replace deprecated qSort/qStableSort/qGreater/qLess with std:: algs 2017-02-07 12:47:00 +10:00
Nyall Dawson
8408777448 Replace deprecated qSwap with std::swap 2017-02-07 12:33:24 +10:00
Nyall Dawson
337dabea4e Swap QSharedPointer to std::shared_ptr 2017-02-07 12:32:02 +10:00
Nyall Dawson
aed6c735a6 Swap QScopedPointer to std::unique_ptr
Why?
- no benefits to QScopedPointer over std::unique_ptr
- unlike QScopedPointer, std::unique_ptr has no overhead
over regular pointers
- using standard language features makes it more likely that
compilers can optimise this use and static analysers can
correctly handle code using unique_ptrs
- QScopedPointer has an (IMO) uncertain future (given that
Qt is dropping features which have become part of the c++
standard). Better to port now before wider use of QScopedPointer
in the codebase!
2017-02-07 12:08:57 +10:00
Nyall Dawson
a08137f101 Add unit tests for map renderer label caching 2017-02-07 11:24:30 +10:00
Nyall Dawson
9757116a26 Fix crash 2017-02-07 10:07:19 +10:00
Nyall Dawson
d0d9bab0a6 Don't cache labeling if blend modes are used
The flattening of the label results to an image blocks
blend modes applying correctly to underlying layers
2017-02-07 10:07:19 +10:00
Nyall Dawson
2b3805eea5 Reuse existing labeling results if cached labels were redrawn 2017-02-07 10:07:19 +10:00
Nyall Dawson
33eb4bc0c4 [FEATURE] Cache labeling result to avoid unnecessary redraws
when refreshing canvas

This change allows the labeling results to be cached to an image
following a map render. If the cached label result image can be
reused for the next render then it will be, avoiding the need
to redraw all layers participating in the labeling problem and
resolving the labeling solution.

Basically this means that canvas refreshes as a result of changes
to any NON-LABELED layer are much faster. (Changing a layer which
is part of the labeling solution still requires all labeled
layers to be completely redrawn)
2017-02-07 10:07:19 +10:00
Juergen E. Fischer
9475850f39 * update INSTALL
* osgeo4w: search qt5 first and use pyrcc5.bat
2017-02-07 00:58:56 +01:00
Nyall Dawson
d47d31d13c Rename "Db"/"DB" in API to "Database"
Motivations:
- consistency - we generally use expanded names, and this also
matches Qt API which uses Database instead of Db
- avoids unpredictable capitalization throughout API (mix of "Db"
and "DB")
2017-02-07 09:32:05 +10:00
Harrissou Sant-anna
bfd18c4a6d Update Startup tips 2017-02-07 00:03:47 +01:00
Denis Rouzaud
64748aaa89 compile custom widgets on Travis 2017-02-06 13:55:11 +01:00
Denis Rouzaud
d84725fce8 [custom widgets] add missing file widget 2017-02-06 13:30:53 +01:00
alisovenko
332961f748 Add test for map edit tool. Test the correctness of getting default z. 2017-02-06 14:12:57 +03:00
Denis Rouzaud
6f5161a6f0 spelling fix 2017-02-06 11:48:47 +01:00
Mathieu Pellerin
d99faecf3e [ui] make layer rendering collapsed by default (#4108) 2017-02-06 11:31:01 +07:00
Nyall Dawson
c1b5da4726 Clear cached map renders if dependent layer is removed 2017-02-06 11:35:46 +10:00
Nyall Dawson
aa392dc23a Add method to retrieve dependent layers for map renderer cached images 2017-02-06 11:27:42 +10:00
Juergen E. Fischer
748acc6790 osgeo4w: packaging fixes 2017-02-06 01:30:59 +01:00
Nyall Dawson
737c92ddbb Fix logically dead code identified by Coverity 2017-02-06 10:16:44 +10:00
Nyall Dawson
a80cca0fb3 Fix indentation 2017-02-06 09:28:15 +10:00
Nyall Dawson
48e5c09b89 Fix a lot of memory leaks when fetching provider libraries 2017-02-06 08:51:35 +10:00
Nyall Dawson
4f7d9cddfe Merge pull request #4064 from jgrocha/delete-style-from-db-provider-postgis
Delete style from db provider postgis
2017-02-06 08:34:24 +10:00
Nyall Dawson
6ca2cc18ef Fix label font size unit from 2.x projects incorrectly restored (fix #16143) 2017-02-06 08:32:32 +10:00
Jorge Gustavo Rocha
20eea32952 Replaced QLibrary * with more safer QScopedPointer 2017-02-05 22:03:13 +00:00
Jorge Gustavo Rocha
8b36ad5b90 Updated Qt connections to the new style qgis/QGIS-Enhancement-Proposals#77
Changed isDeleteStyleFromDBSupported to isDeleteStyleFromDbSupported
2017-02-05 19:35:47 +00:00
Nyall Dawson
c5546b0357 Allow conversion of QgsPropertyTransfomers to expressions (when possible) 2017-02-05 20:19:12 +10:00
Nyall Dawson
ac55f396dd Fix reading project properties fails if any child element
has a tag named "properties"
2017-02-05 19:58:51 +10:00
Nyall Dawson
be9e93d671 Refactor internals of QgsPropertyOverrideButton 2017-02-05 15:16:48 +10:00
Nyall Dawson
54089ff710 Follow up 4a3871, fix broken data defined properties
(definitions are often accessed before a QgsSymboLayer/etc
is constructed)
2017-02-05 14:27:26 +10:00
Nyall Dawson
fa8189a53c Tweak property definitions for size type properties 2017-02-05 14:27:14 +10:00
Juergen E. Fischer
2c65a66587 revert more of ab0345 2017-02-04 21:22:48 +01:00
Juergen E. Fischer
e20bbd515c translation string fixes 2017-02-04 20:44:44 +01:00
Juergen E. Fischer
4a387130b5 fix initial crash on windows 2017-02-04 20:25:34 +01:00
Nyall Dawson
4f20979d39 Partially revert ab0345 2017-02-04 21:43:19 +10:00
Nyall Dawson
a0cb64520a Merge pull request #4095 from nyalldawson/label_engine_layers
Use weak layer pointers in labeling engine
2017-02-04 15:03:20 +10:00
Nyall Dawson
11150dde3e Add additional curvepolygon with compound curve to reference geometry tests 2017-02-04 14:57:29 +10:00
Nyall Dawson
ab03453136 [processing] Rename 'export/add geometry columns' alg + add tags for discoverability 2017-02-04 14:56:54 +10:00
alisovenko
d780ba7593 Merged master fixed conflict. 2017-02-03 18:11:49 +03:00
rldhont
cb9314af67 Merge pull request #4100 from rldhont/bugfix_dbmanager_detect_query_layer
[BUGFIX][DB Manager] Detect query layer like providers do
2017-02-03 11:30:58 +01:00
matteo
74c65c8e74 [processing] qgis voronoi test 2017-02-03 11:28:09 +01:00
alisovenko
a1bdb8fc7d Fix return value warning in defaultZValue function. 2017-02-03 10:32:31 +03:00