56030 Commits

Author SHA1 Message Date
Nyall Dawson
e0446a7165 Preview icons for text symbols 2019-06-21 15:52:56 +10:00
Nyall Dawson
1e718478df [FEATURE] Allow creation and editing of text formats through style manager dialog
This allows the style manager to be used to manage text formats,
which store the font, color, buffers, shadows, and backgrounds
of text formats (i.e. all the formatting parts of label settings,
which can be used outside of labels, eg in layouts)

Text Formats are added alongside the existing symbols and color
ramp management options, and offer identical functionality as these.
2019-06-21 15:52:56 +10:00
Nyall Dawson
447fe002ed Start exposing text formats via GUI 2019-06-21 15:52:56 +10:00
Nyall Dawson
8e98cce253 Auto update existing style databases to add new text format table 2019-06-21 15:52:56 +10:00
Nyall Dawson
9647a18c13 Move label preview background color setting to QgsTextFormat
So that we can utilise it outside of labeling
2019-06-21 15:52:56 +10:00
Nyall Dawson
67c93c1191 Add support for text formats to QgsStyleModel 2019-06-21 15:52:56 +10:00
Nyall Dawson
40e4789ba1 [API] Add support for text renderer formats to QgsStyle 2019-06-21 15:52:56 +10:00
Nyall Dawson
4c2a53319b Fix string values are always repeated in expression build field values list 2019-06-21 15:52:25 +10:00
Nyall Dawson
bb622c8718 [layouts] When a layer item is set to block labels from a map,
don't apply the "label margin from map edge" to this item's extent

Turns out that that behavior was unwanted in practice, as it
misused the margin from edge setting and caused too large a
blocking region for labels around other layout items.
2019-06-21 15:12:55 +10:00
David Signer
840ab03808 const copy before for loop 2019-06-21 09:04:42 +10:00
David Signer
9290dff9fc tests for removing constraints on provider default value 2019-06-21 09:04:42 +10:00
David Signer
4ac0f69d07 remove constrainst of fields that use defaultValueClauses from provider on original
fixes #28122
2019-06-21 09:04:42 +10:00
Blottiere Paul
3b02d3d970 Replace shared pointer with unique pointer 2019-06-21 09:03:03 +10:00
Blottiere Paul
87bdf6b6b6 Add unit test 2019-06-21 09:03:03 +10:00
Blottiere Paul
6bdb9ba10b Add QLongLong support. Fixes #30263 2019-06-21 09:03:03 +10:00
Tom Elwertowski
35da038860 macOS needs path to GEOS framework for PAL 2019-06-21 07:04:11 +10:00
Juergen E. Fischer
b20e93c8e2 windows: fix retrieval of user name and full name with special characters 2019-06-20 16:52:20 +02:00
Juergen E. Fischer
3c57d28cfa osgeo4w: change start directory of shortcuts to 'my documents' 2019-06-20 16:52:20 +02:00
Denis Rouzaud
51572e9e83
Merge pull request #30269 from 3nids/fix28962
do not use unique_ptr for QGraphicsItem
2019-06-20 14:20:03 +02:00
Matthias Kuhn
fa1d6bbf61
Merge pull request #30276 from m-kuhn/std_vector_checks
Fix crash in raster calculator
2019-06-20 11:17:45 +02:00
Alessandro Pasotti
0290342e6e
Merge pull request #30271 from elpaso/bugfix-gh30264-wms-bbox-wrong-transform-empty-layers
Server wms bbox wrong transform on empty layers
2019-06-20 10:55:25 +02:00
Matthias Kuhn
6b5393798c Improved fix 2019-06-20 09:34:15 +02:00
Alessandro Pasotti
c838161f64 Catch coord transform exception and log it
Skip the layer if there are any exceptions.
2019-06-20 07:22:57 +02:00
Nyall Dawson
3bd3aba25b [needs-docs] [labeling] Allow data defined control over line placement options
Allows users to override the line placement settings (e.g.
above/below/on line options) on a per-feature basis. Somehow
this one was the only(?) setting from labeling which
was missing a data defined control...
2019-06-20 10:24:16 +07:00
Nyall Dawson
04c51db551 Fix priority of parallel placements
Ensure that above line placement is preferred when both above
and below line placements are valid
2019-06-20 12:50:35 +10:00
Nyall Dawson
6eaaf92662 Use a hardcoded list of candidate field name strings, including
(harcoded) localized versions

See discussion at https://github.com/qgis/QGIS/pull/30245
2019-06-20 09:40:47 +10:00
Nyall Dawson
6c08f063f4 Revert "Use a translated list for default display expression field candidates"
This reverts commit bb6993fd6f2abc6ecc7743ff599db34394abadcb.
2019-06-20 09:40:47 +10:00
Nyall Dawson
65a07a5487 Use a translated list for default display expression field candidates 2019-06-20 09:40:47 +10:00
Nyall Dawson
a8d212b129 Fix tests 2019-06-20 09:40:47 +10:00
Nyall Dawson
922f99405a More tweaks 2019-06-20 09:40:47 +10:00
Nyall Dawson
a9e7b85b72 [labeling] Default to display field when first setting labels
enabled on a layer

Helps with new users -- they see an immediate effect after setting
labels enabled on a layer
2019-06-20 09:40:47 +10:00
Nyall Dawson
11e1862f86 Fix logic for picking default field for display expression
And add test
2019-06-20 09:40:47 +10:00
Nyall Dawson
2566479059 [processing] Drop existing fid columns when running Package Layers algorithm
Many layer sources have fid fields which are not compatible with gpkg
requirements, so it's safest to just recreate these anew.

Fixes errors when packaging certain source layers.
2019-06-20 08:42:30 +10:00
Matthias Kuhn
e8d288264c Do not assume we can randomly access std::vector elements without pushing them
Fix #30232
2019-06-19 17:08:43 +02:00
Denis Rouzaud
6dfe113d67 do not hold a pointer to an QGraphicsItem within a QGraphicsItem
since map canvas is deleting them all, this is causing a crash when trying to delete the already deleted item in the parent item
2019-06-19 16:20:32 +02:00
Denis Rouzaud
9c76524da7 do not use unique_ptr for QGraphicsItem
since the ownership of the item is transferred to the scene
this leads to a crash when deleting the object holding the pointer

since the ownership is transferred back when removing the item, one should
take care of resetting the pointer no canvas deletion

this should fix #28962
2019-06-19 16:20:12 +02:00
Alessandro Pasotti
9868d86f0d Reference file for regression 30264 2019-06-19 15:49:59 +02:00
Alessandro Pasotti
6cfc7b09bd Server WMS getcapabilities wrong bbox in case of empty layers
... and different CRS

Fixes #30264
2019-06-19 15:46:51 +02:00
Denis Rouzaud
6051c7b4b6 put back QT_SELECT 2019-06-18 22:32:32 +02:00
Denis Rouzaud
bf10738d2f remove ENV CC et CXX variables from base docker images
since they prevent to be used as a build arg in final image
2019-06-18 22:12:21 +02:00
lbartoletti
c3f5f71752 more tests 2019-06-19 05:19:10 +10:00
lbartoletti
a022cbb21b Fix reshape for snapped point with Z and add test 2019-06-19 05:19:10 +10:00
Denis Rouzaud
60415a8eb9 also push build deps images when building final images
for Disco images, otherwise never pushed
2019-06-18 17:33:17 +02:00
Denis Rouzaud
8474a54927 build Disco Docker image with GCC
freeze happens with clang when building the bindings
2019-06-18 16:58:11 +02:00
Martin Dobias
f319235b28 Fix handling of relative paths for XYZ tiles using file:/// URLs
XYZ tiles raster layer supports usage of file-based URLs, so it should also support saving of URLs as relative paths in project files.
2019-06-18 14:59:18 +02:00
Matthias Kuhn
884dff6eeb
Merge pull request #30253 from m-kuhn/set_status_tip
Synchronize status bar messages
2019-06-18 13:36:56 +02:00
Matthias Kuhn
242c9fcfba Fix setStatusTip
Fixes #30249
2019-06-18 07:20:27 +02:00
Juergen E. Fischer
bff757a518 update crash reports for github 2019-06-17 23:57:49 +02:00
Martin Dobias
127fe3cf37 Tweak vertex markers so that they are not filled
The rationale is that vertices are more difficult to see when they
are behind the markers and people liked that in 2.x they were
without internal fill.
2019-06-18 06:20:38 +10:00
Jorge Gustavo Rocha
cd8f2f1e00 Fix attribute table shortcuts when docked [needs-docs]
Closes #29633, fix #29945
2019-06-18 06:19:27 +10:00