30775 Commits

Author SHA1 Message Date
Nyall Dawson
24d9c65494 Fix more classes which violate the rule-of-three
Also remove some empty destructors
2016-01-26 14:24:45 +11:00
Martin Dobias
492c1a9ff0 Improve documentation for renderer registry metadata (refs #13973) 2016-01-25 18:16:32 +01:00
Martin Dobias
83eed1109c Improve renderer class documentation (refs #14025) 2016-01-25 18:16:32 +01:00
Matthias Kuhn
b5ee06dc28 Merge pull request #2702 from alexbruy/styles-bindings
fix SIP bindings for listStylesInDatabase() method (fix #11210)
2016-01-25 17:39:20 +01:00
Martin Dobias
82eabb1976 Fix crash in vector layer properties when changing renderer type (fixes #14164) 2016-01-25 13:16:05 +01:00
volaya
73bef58470 [processing] correctly initialize lastools settings before loading algs 2016-01-25 10:12:04 +01:00
Nyall Dawson
7fcc7ab195 Add specific test for QgsMultiBandColorRenderer
The raster blend mode test, which uses QgsMultiBandColorRenderer
fails occasionally for no obvious reason. This additional test
is an attempt to narrow down whether the issue lies in
rendering multi band images or elsewhere.
2016-01-25 19:05:13 +11:00
Nyall Dawson
a20d50340d Swap QString::replace using trivial QRegExp expressions with simple
QString variants

Rationale:
1. It's *much* faster
2. I managed to get a valgrind report from the intermittently crashing
PyQgsRulebasedRenderer test, which indicated the crash related to
the use of QRegExp in qgsexpressionlexer.ll. Let's see if this has
any impact on that crash....
2016-01-25 18:50:17 +11:00
Nyall Dawson
7400ca9c87 Fix issues with conversion of renderers to rule based renderer
- expressions were not correctly translated and always treated
as a single field
- string values were not correctly escaped, resulting in a broken
renderer
2016-01-25 15:17:03 +11:00
Nyall Dawson
39e1f68ccc Fix filtering legend content by map when renderer contains
duplicate symbols (fix #14131)

Now, we don't test for map content using the symbols but instead
use the legend key during the hit test
2016-01-25 14:43:54 +11:00
Nyall Dawson
cf3c55bdfc [travis] Warn on unintentional switch fallthrough
Intentional fallthrough should be annotated with

"FALLTHROUGH;"
2016-01-25 14:41:07 +11:00
Nyall Dawson
f6c0d8dd63 Use QVector instead of QList in some private contexts 2016-01-25 12:36:27 +11:00
Juergen E. Fischer
5574d40022 fix warnings 2016-01-25 01:35:35 +01:00
Juergen E. Fischer
ae52aabd70 more spelling fixes 2016-01-24 20:16:28 +01:00
Matthias Kuhn
265f53ceea Fix wording and add warning 2016-01-24 17:35:56 +01:00
Nyall Dawson
ac033cfc9d Refactor and optimise certain QgsWKBTypes functions
Given how frequently these functions are called throughout QGIS,
it makes sense for them to be written in a way that makes it easy
for the compiler to optimise them/inline them.
2016-01-24 20:26:56 +11:00
Matthias Kuhn
ba530a0f1c Merge pull request #2715 from SebDieBln/FixWarnDualViewLayout
Fix warning when a QLayout is already present in QgsDualView.
2016-01-24 10:25:33 +01:00
Juergen E. Fischer
bbfcbcae10 snapping:
* skip index build if snapping is off
* use feature request limit when creating the snapping index
2016-01-24 07:21:23 +01:00
Nyall Dawson
8ad6ca08fe Fix some memory leaks identified by Coverity
Also improve the API for QgsExpressionContextUtils::updateSymbolScope
Previously it was hard to predict if the method would create storage,
which caused issues for the python bindings (eg, they had a choice of
either leaking or being crashy).
2016-01-24 15:17:17 +11:00
Jürgen Fischer
1dc8fc3c4e Merge pull request #2716 from SebDieBln/LoadShowPlusSign
[Bugfix] Correctly load the labeling-setting to show a plus-sign next to numbers (fixes #13474)
2016-01-24 02:50:56 +01:00
Sebastian Dietrich
df4c0c1247 fix loading the labeling-setting to show a plus-sign next to numbers
(fixes #13474)
2016-01-24 01:13:05 +01:00
Juergen E. Fischer
764c649842 potential fix for PyQgsAppStartup by avoiding cloudflare 2016-01-23 22:40:31 +01:00
Nyall Dawson
88a9f99a5d Add mask for adjacent line fill test image 2016-01-24 08:16:55 +11:00
Martin Dobias
fc086adb34 Remove too much debug output when loading attribute table (refs #14041)
This makes debug version much faster, probably not much difference in release version
2016-01-23 20:40:59 +01:00
Martin Dobias
a618f85a96 Hide extra encoding option from the vector "save as" dialog
There is already another combo box for encoding selection.
2016-01-23 20:27:18 +01:00
Martin Dobias
5512d5443f Fix regression in vector "save as" that saved shapefiles as .dbf only (fixes #14158) 2016-01-23 20:21:05 +01:00
Salvatore Larosa
8346601174 [processing] remove unused code: followup e7e8451 2016-01-23 15:03:34 +01:00
Sebastian Dietrich
da43fb70e7 Fix warning when a QLayout is already present in QgsDualView. 2016-01-23 14:59:53 +01:00
Salvatore Larosa
09ce8004fd avoid messages warning: this also avoids the warning like:
```
QObject::connect: Cannot connect (null)::repaintRequested() to LayerPreview::refresh()
QObject::connect: Cannot connect (null)::layerCrsChanged() to LayerPreview::layerCrsChange()
```

from dbmanager when changing layer preview.
2016-01-23 13:21:29 +01:00
Nyall Dawson
bfad753f37 Fix coverity issues 2016-01-23 10:31:00 +11:00
Marco Hugentobler
e83a7c869f Follow up 200ce04b88c515d9880615d7254e45d1a50049a4 2016-01-22 20:01:22 +01:00
unknown
200ce04b88 Fix shapes not deleted on windows 2016-01-22 18:16:22 +01:00
Alexander Bruy
9193d8f5a0 [processing] drop GdalScriptAlgorithm as it is not used
Also remove OgrAlgorithm base class at it almost completely duplicates
GdalAlgorithm class. All affected algorithms updated accordingly.
2016-01-22 15:47:20 +02:00
Nyall Dawson
ac22e9be06 Dropped threshold too far, fix Travis build 2016-01-22 20:45:14 +11:00
Juergen E. Fischer
6b192c29c0 osgeo4w: also include grass bin directory in PATH for browser (followup 71d487c)
(cherry picked from commit 6945647841b79bd8a465f91931876f7c2441f064)
2016-01-22 09:33:13 +01:00
Juergen E. Fischer
71d487c94d osgeo4w: include grass bin directory in PATH 2016-01-22 09:18:38 +01:00
Nyall Dawson
576469aff3 Drop missing doc threshold 2016-01-22 18:54:35 +11:00
Nyall Dawson
41f320f771 Remove rubbish file 2016-01-22 18:53:21 +11:00
Nyall Dawson
62429e1305 Add some tolerance to PyQgsSymbolExpressionVariables test 2016-01-22 18:52:23 +11:00
Nyall Dawson
69ce55998e Fix some oddities in server access control and bindings (refs #13919) 2016-01-22 18:48:57 +11:00
Nyall Dawson
752f6bd150 Fix classes which violate rule of three, by implementing required
copy/= operators or making them private

This revealed (and fixes) some issues, including a potential crash
using server access control (refs #13919), and a potential crash with
diagrams
2016-01-22 18:45:45 +11:00
Matthias Kuhn
a16535a926 Merge pull request #2711 from SebDieBln/HideWelcomeOnLoadProject
[Bugfix] Always hide the welcome screen when the first project is loaded
2016-01-22 07:37:44 +01:00
Nyall Dawson
68cbb44c38 Merge pull request #2712 from nirvn/renderer_icons_v2
[ui] add missing renderer icons
2016-01-22 17:24:59 +11:00
nirvn
36d2e7b1bb [ui] add missing renderer icons 2016-01-22 11:51:24 +07:00
Sebastian Dietrich
a453f72c17 hide welcome screen when first project is loaded 2016-01-22 00:44:38 +01:00
Matthias Kuhn
28b541ab4b Copy layer variables when duplicating layers 2016-01-21 22:37:52 +01:00
Matthias Kuhn
ff8472d06b [orderby] Uncheck config options instead of disable
Fix #14144
2016-01-21 22:37:52 +01:00
Matthias Kuhn
fe48485218 [25d] allow disabling the shadow effect 2016-01-21 22:37:52 +01:00
Matthias Kuhn
4d4ab63c8a [25d] Properly initialize shadow color
Fix #14135
2016-01-21 22:37:52 +01:00
Matthias Kuhn
7f4cd84c1f [25d] Don't disable shadow option
Fix #14134
2016-01-21 22:37:51 +01:00