57783 Commits

Author SHA1 Message Date
Nyall Dawson
95e0b9be94 Add missing file 2019-09-26 12:41:04 +10:00
Nyall Dawson
b9310ca47b Spelling 2019-09-26 12:41:04 +10:00
Nyall Dawson
1f033fe83d Fix some more conditional formatting panel high dpi issues 2019-09-26 12:41:04 +10:00
Nyall Dawson
72efc1edde Fix loss of font setting when editing conditional format 2019-09-26 12:41:04 +10:00
Nyall Dawson
a8d145a80a Use a proper panel widget for conditional formatting configuration widget
Fixes a number of UI issues, including poor hi-dpi compatibility.
2019-09-26 12:41:04 +10:00
Nyall Dawson
b9b690caac Remember splitter width for conditional formatting panel in attribute table 2019-09-26 12:41:04 +10:00
nirvn
85d2cb042d Use QStringLiteral() when building the about version string 2019-09-26 09:07:46 +07:00
Nyall Dawson
aefbf66272 Avoid overflow in QgsImageOperation 2019-09-26 10:03:08 +10:00
Nyall Dawson
651c507180 [processing] Extend api for retrieving a layer in a compatible format
A few releases ago a bug fix was implemented which forced conversions
of multi-layer sources. This was a valid bug fix, but the consequence
was that any algorithm using this api with a source file containing
multiple layers (e.g. gpkg) performed a complete copy of the target
layer to a new file, severely impacting performance.

This commit adds new API to retrieve a compatible layer path in the
case when an algorithm CAN correctly handle specific target layer names.
In this case, the forced copy of the source layer is avoided when
using multi-layer inputs like geopackage.
2019-09-26 09:27:46 +10:00
Nyall Dawson
b3f9ce1c26 Don't generate moc for header without qobject 2019-09-26 09:05:22 +10:00
Nyall Dawson
57ee33ed71 Add missing file 2019-09-26 09:05:22 +10:00
Nyall Dawson
374fce65a1 Fix indentation of qgsvectorlayer.cpp 2019-09-26 09:05:22 +10:00
nirvn
a26834076f [decoration] Fix north arrow decoration rotation not saved/restored 2019-09-25 16:42:12 +07:00
nirvn
c97b087620 [ui] Avoid hard-coded white background for north arrow / image decoration preview 2019-09-25 16:42:12 +07:00
nirvn
fb8b1f553d followup e90b25b: translation fix 2019-09-25 16:35:22 +07:00
nirvn
cb9dd24a50 Harmonize provider description string
- Remove ogr/gdal version info from ogr provider description
- Add 'data' to gdal provider description
2019-09-25 16:12:11 +07:00
nirvn
e90b25b0b4 Add active python/provider plugins in the about dialog
This extra information is added with the hope it'll add
value to issues reporting when people are pasting the
content of the about dialog's text box.

Specifically, it'll allow people reviewing newly filed
issues to know whether 3rd-party plugins were active or
not without the need of asking: "did you deactivate
plugins?".
2019-09-25 16:12:11 +07:00
Nyall Dawson
bccd5a4610 Fix conditional styles in feature list view do not update when
the layer's conditional styles are changed
2019-09-25 16:55:33 +10:00
Nyall Dawson
5f7264d4d1 Fix broken display of conditional styles in feature list view
While the model was correctly returning the right values for the
font/color/decoration roles, these were not being utilised by
the delegate and had no impact on the rendering of the list.
2019-09-25 16:55:33 +10:00
Nyall Dawson
c15c727189 Fix conditional style compression incorrect considers invalid
styles as valid objects

Results in invalid conditional style settings being returned
for a feature in some circumstances
2019-09-25 16:55:33 +10:00
Nyall Dawson
bc82cffd85 Use invalid colors, not transparent colors, to indict not set colors
in QgsConditionalStyle

Otherwise we can't differentiate a "not set" value from a "set but
transparent" value. And this use case is exactly why invalid QColor
states exist.
2019-09-25 16:55:33 +10:00
Nyall Dawson
93b6b71b3f Astyle 2019-09-25 16:55:33 +10:00
Nyall Dawson
b1ee295a95 Make QgsConditionalLayerStyles a QObject
and add a "changed" signal to it, so that we can tell when the
layer's conditional styles change
2019-09-25 16:55:33 +10:00
Nyall Dawson
d43834e999 Add equality operator for QgsConditionalStyle 2019-09-25 16:55:33 +10:00
Nyall Dawson
5fa81fb8f2 Add a __repr__ method for QgsConditionalStyle 2019-09-25 16:55:33 +10:00
Matthias Kuhn
96dd42b150
Merge pull request #30972 from qgis/3nids-patch-1
Fix virtual fields that use functions requiring all attributes
2019-09-25 08:25:01 +02:00
nirvn
95fc1a1f6c [ui] Insure symbol widgets are enabled only when grid decoration is enabled
(fixes #31946)
2019-09-25 10:25:01 +07:00
Mathieu Pellerin
f21d7fafee [ui] Insure color widgets are enabled only when image decoration enabled
(fixes #31962)
2019-09-25 10:25:01 +07:00
Nyall Dawson
61bfced6a7 [labeling] When an extreme number of features are being labeled from
a single layer, place additional limits on the maximum number of
labeling candidates to generate for features in this layer

Helps avoid extreme labeling times (e.g. on my test project with
some 3000 point features being registered for labeling, the labeling
time cuts from 30 seconds to 3 seconds). There should be no loss
in quality here either, given that the labeling placement solution
for any map with this many labels is always going to be quasi-random
anyway (and is likely never going to be a cartographic masterpiece....)
2019-09-25 11:14:07 +10:00
Nyall Dawson
2f17a3ceee Identation 2019-09-25 11:07:26 +10:00
Nyall Dawson
6d67f01a4a Revert "[ASTYLE] increase max-instatement-indent to get nicer alignments on multilines"
This reverts commit 0e994fda020352a579b2ca73b94665899d7bf862.

Breaks travis on many PRs -- requires a bulk astyle update to accompany the PR
2019-09-25 11:07:26 +10:00
Nyall Dawson
b4550dc4c0 [layouts] Fix incorrect alignment of items when the align or distribute
tools are used with items with a non-top-left reference point

Fixes #31900
2019-09-25 04:31:36 +10:00
Nyall Dawson
6e2c7311bb Add Python __repr__ for QgsLayoutPoint, QgsLayoutSize, QgsLayoutMeasurement 2019-09-25 04:31:36 +10:00
nirvn
531e1b0715 [categorized][graduated] Handle categorized<->graduated renderer conversion
(fixes #31633)
2019-09-24 20:08:47 +07:00
Denis Rouzaud
f21e03c5ef
Merge pull request #31963 from 3nids/fix_bool_attrtable
fix false boolean not shown as so in attribute table
2019-09-24 14:31:45 +02:00
Alexander Bruy
4df50691bc
Merge pull request #31901 from alexbruy/fix-29336
[processing] correctly handle case when layer source is not a plain path (fix #29336)
2019-09-24 15:03:43 +03:00
Denis Rouzaud
3ee9cd7186 fix test 2019-09-24 13:09:22 +02:00
Denis Rouzaud
f4a05fd578 add code description 2019-09-24 09:28:03 +02:00
Denis Rouzaud
44727291d4 display value rather than NULL 2019-09-24 09:13:21 +02:00
Alessandro Pasotti
49ef3fa921
Merge pull request #31959 from elpaso/bugfix-gh31927-crash-adding-wmts
Fix browser crash when adding (broken) WMTS
2019-09-24 09:02:08 +02:00
Nyall Dawson
90bac82f12 [needs-docs][processing] Respect user set default vector output format
in vector split algorithm

The created outputs will now be created using the format specified from
the Processing setting default vector format setting.
2019-09-24 16:50:22 +10:00
Nyall Dawson
b9e223d802 Add methods to QgsProcessingContext to return the preferred vector and raster formats
These methods return a file extension to use when creating vector/raster outputs (e.g. "tif"). Generally,
it is preferable to use the extension associated with a particular parameter, which can be retrieved through
QgsProcessingDestinationParameter::defaultFileExtension(). However, in some cases, a specific parameter
may not be available to call this method on (e.g. for an algorithm which has only an output folder parameter
and which creates multiple output layers in that folder). In this case, the format returned by this
function should be used when creating these outputs.

It is the algorithm's responsibility to check whether the returned format is acceptable for the algorithm,
and to provide an appropriate fallback when the returned format is not usable.
2019-09-24 16:50:22 +10:00
Nyall Dawson
cfcf580b61 [processing][needs-docs] Resurrect setting for default raster/vector
output format

This setting is still used and required in some circumstances, e.g.
it is used as the default selection in outputs file pickers when
the previously used format is not valid.
2019-09-24 16:50:22 +10:00
Nyall Dawson
08c55780b3 Followup cbc86ffc1ac
Fix exceptions, breakage of raster output format handling
2019-09-24 16:49:57 +10:00
Nyall Dawson
d4ce50c2b1 [processing] Add API support for algorithm aliases
Allows us to freely move algorithms between providers without
breaking existing scripts
2019-09-24 16:48:39 +10:00
Alexander Bruy
78a289348a use html.escape to escape strings 2019-09-24 09:27:29 +03:00
Denis Rouzaud
4c0c6c9d88 add test for QgsCheckBoxFieldFormatter 2019-09-24 08:22:27 +02:00
Denis Rouzaud
0caa93c401 also consider non boolean fields 2019-09-24 07:53:11 +02:00
Harrissou Sant-anna
c09fd237f6 [needs-docs][ui] Reorganize decoration dialog (#31948) 2019-09-24 11:28:57 +07:00
Nyall Dawson
a4da849e9d Fix inconsistent use of QgsLayoutAtlas::changed signal
Fixes GUI is not updated when layout atlas is set to use the
default filename expression

Fixes #20786
2019-09-24 10:49:42 +10:00