56176 Commits

Author SHA1 Message Date
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
Martin Dobias
a6b837b745 code layout fixes 2019-06-20 00:09:20 +02:00
Martin Dobias
78f69ad5a6 Added sip files for newly added classes 2019-06-19 23:09:13 +02:00
Martin Dobias
f6049e01d0 Misc fixes to get the branch compiling & running with Python
- grass data item provider fixes
- removed QgsProviderMetadata constructor (with std::function / PyObject) due to sip errors (api break)
- reverted DataCapability move to Qgis - back to QgsDataProvider (avoiding api breaks)
- WidgetMode enum documentation
- sipify monkey patching fix
- renamed WidgetMode's "None" to "Normal" value - in python None has special meaning (api break)
2019-06-19 23:02:11 +02:00
Larry Shaffer
ebd4f0d8ca
Add layer tree layer contextual menu mark, floating on right of viewport
This accomplishes several things:
- Offers an indication to user that there are layer-related actions
- Single click access to contextual menu
- Offers an indication to user where layers are located when viewport is
  horizontally scrolled to right, and layer names are not visible
2019-06-19 10:06:37 -06:00
Larry Shaffer
8778735356
Draw layer tree layer indicator background, for when floating over text 2019-06-19 10:06:20 -06:00
Larry Shaffer
a06a96cf7c
Reset minimum section size to layer tree veiwport width on resize
Since last column is resized to content (instead of stretched), the
active selection rectangle ends at width of widest visible item in tree,
regardless of which item is selected. This causes layer indicators to
become 'inactive' (not clickable and no tool tip) unless their rectangle
enters the view item's selection (active) rectangle. Always resetting
the minimum section size relative to the viewport ensures the view
item's selection rectangle extends to the right edge of the viewport,
which allows indicators to become active again.
2019-06-19 10:05:59 -06:00
Larry Shaffer
2c98fc6088
Draw layer tree layer item indicators floating on right of viewport
Also, remove adjustment of layer text rectangle, since veiwport scrolls
horizontally now.
2019-06-19 10:05:13 -06:00
Larry Shaffer
d8b5454833
Set embedded opacity widget min/max size; add expanding spacer
Expandable subwidgets should have min/max sizes in a layout and the
appended expanding QSpacerItem ensures full width is always created in
the QTreeView item's column. In turn, this ensures layer indicators are
always over an active part of the selected item, and expandable control
subwidgets do not expand excessively.
2019-06-19 10:05:01 -06:00
Larry Shaffer
3c0e3eecf2
Fix vertical clipping of legend graphics; scroll per pixel 2019-06-19 10:04:47 -06: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
Éric Lemoine
0b87041b31 Improve the extentBuffer API docs 2019-06-19 09:32:44 +02:00
Éric Lemoine
d771ccf188 Add tooltip for the TileBuffer setting 2019-06-19 09:25:05 +02:00
Julien Cabieces
e9463792e7 Update datasource when using postgres provider so we have the key
column in it
2019-06-19 08:01:53 +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
Éric Lemoine
053c44428a Fix code styling 2019-06-18 16:41:36 +02:00
Éric Lemoine
93865e3315 Add missing const's 2019-06-18 15:47:44 +02:00
Éric Lemoine
c4b1431e92 Set extent buffer in configureMapSettings 2019-06-18 15:43:05 +02:00
Éric Lemoine
ebb2983ee3 Add a unit test for QgsMapSettings::extentBuffer 2019-06-18 15:42:00 +02:00
Peter Petrik
62d615c2cd [QEP 149] Introduce static data providers [API BREAK]
- adds QgsProviderGuiRegistry and QgsProviderGuiMetadata
- adds QgsProjectStorageGuiRegistry
- requires providerMetadataFactory for dynamic data providers
- requires providerMetadataGuiFactory for dynamic data providers (GUI only)
- removes QgsProviderRegistry::WidgetMode
2019-06-18 15:15:36 +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
Éric Lemoine
15c285fa40 Reformat mapTileBuffer signature 2019-06-18 14:54:11 +02:00
Éric Lemoine
23872fcc41 Improve the API docs 2019-06-18 14:48:23 +02:00
Éric Lemoine
c0804fcc39 Update API docs for wmsTileBuffer 2019-06-18 14:31:14 +02:00
Éric Lemoine
77247590d2 Keep the destination image of the same size
Use a bigger extent for getFeatures but keep the destination image of the
same size.
2019-06-18 14:26:34 +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
Matthias Kuhn
24e56a810c
Merge pull request #30176 from jgrocha/redmine2github
References to issues.qgis.org updated
2019-06-17 11:34:12 +02:00
Nyall Dawson
c3f98ebfce [processing] Prevent dropping layers of known incompatible types from browser to
map layer parameters
2019-06-17 18:17:10 +10:00
Nyall Dawson
de672e3127 Allow storing layer WKB type in QgsMimeDataUtils::Uri 2019-06-17 18:17:10 +10:00
Nyall Dawson
83759f1631 Correctly ignore unwanted drag events in QgsMapLayerComboBox 2019-06-17 18:17:10 +10:00
Juergen E. Fischer
72af468228 translation string fixes 2019-06-17 09:40:29 +02:00
Nyall Dawson
260dc91829 Use mouse press to trigger label map tools instead of release
Eases the transition from the click-and-drag behaviour, because
clicking and holding will still start the movement.
2019-06-17 17:11:57 +10:00
Matthias Kuhn
ebfce9b3ec
Merge pull request #30198 from jgrocha/add--version-cli-option
[needs-docs] Add --version|-v cli option to qgis executable
2019-06-17 07:46:41 +02:00
Juergen E. Fischer
62b24064a2 wfs provider: fix invalid feature id assignment (fixes #29146) 2019-06-17 01:15:08 +02:00
Juergen E. Fischer
56ad4a69b4 dxf/dwg import: revert some formatting changes from 2f3646a14 2019-06-17 01:14:58 +02:00
Harrissou Sant-anna
954e77ea5a Add tooltip to file selector widget
to avoid people trying to directly save files in installation folder
2019-06-17 08:49:52 +10:00