51920 Commits

Author SHA1 Message Date
signedav
a1ea0ac540 action deleteLayer in the dataitemproviders
implemented for derived functions in:
- `QgsGeoPackageAbstractLayerItem`
- `QgsSLLayerItem`
- `QgsPGLayerItem`
- `QgsMssqlLayerItem`
2018-11-20 10:49:50 +01:00
signedav
f06bb799ef delete/truncate selected tables for mssql-tables 2018-11-19 09:58:46 +01:00
signedav
9dd96dab34 remove unused comments 2018-11-19 09:42:33 +01:00
signedav
7acd83fd09 delete selected layers on spatialite and pg 2018-11-15 10:23:50 +01:00
signedav
be0ce0ca4c do not pass item as argument 2018-11-15 09:30:34 +01:00
signedav
fa062461b6 pass items to delete layer activity 2018-11-15 09:10:00 +01:00
Matthias Kuhn
3e14761d79
Merge pull request #8436 from signedav/copy_2_pg
Using of QgsVectorLayerUtils::createFeature on move and copy tool
2018-11-07 15:00:55 +01:00
signedav
913719fd37 use toMap to convert to attributeMap 2018-11-07 14:20:30 +01:00
signedav
4ac0631774 createFeature on move and copy
using of the createFeature function with tool move and copy and there the logic of unique not null fields (like primary keys) is used.

This would fix #20347
2018-11-07 14:10:33 +01:00
Nyall Dawson
4cdde31c17 Decode uri for ams provider 2018-11-07 15:30:17 +10:00
Nyall Dawson
bcffc44062 If decoding a layer URI returns a url, then show a link to that url
in the layer's metadata
2018-11-07 15:30:17 +10:00
Nyall Dawson
4b32e7cc78 [afs] Implemented decodeUri for AFS provider
Allows retrieval of the web URL for an AFS layer
2018-11-07 15:30:17 +10:00
Nyall Dawson
94896703dc [afs] Use new style data item provider 2018-11-07 15:30:17 +10:00
Alessandro Pasotti
8125366d65
Merge pull request #8430 from elpaso/handle-bad-layers4
Fix a few crashes with bad layers
2018-11-06 21:51:26 +01:00
Salvatore Larosa
c7cda51499 fix build on OSX: followup bf21ce4661b952fc22f425619ac051d641ad9306 2018-11-06 19:45:52 +01:00
Alessandro Pasotti
2dd3f969f8 Fix a few crashes with bad layers 2018-11-06 18:59:52 +01:00
Martin Dobias
fbde0c8752 [3d] fix camera controller using wrong shift/ctrl status (fixes #20131)
We used Qt3DInput::QLogicalDevice with its axes and actions for camera
controller, but over time this got quite impractical, moreover we started
to have problems with shift/ctrl actions getting stuck in wrong state
in case they were pressed or released while 3D canvas was not focused
(which is in fact relatively common when using other widgets in the GUI)

This commit switches over to using just QMouseHandler and QKeyboardHandler
for handling key and mouse events and this not only makes the code easier
to read, but also the issues with shift/ctrl go away (because we do not
keep their status anymore, we just check whether they are active inside
event handlers).

The speed of change with mouse wheel and keys should be similar or a bit
less than what it was before.
2018-11-06 17:23:09 +01:00
Denis Rouzaud
1e166805ff show icon if exist for menus in customization dialog 2018-11-06 06:43:49 -09:00
Denis Rouzaud
762a15a863 fix move feature action not correctly shown in customization 2018-11-06 06:43:49 -09:00
Alessandro Pasotti
54a6586c85
Merge pull request #8427 from elpaso/handle-bad-layers3
Handle bad layers: fixes for groups and subset string
2018-11-06 15:50:30 +01:00
Alessandro Pasotti
9af0719ff2 Bad layers: added tests for subset string and groups 2018-11-06 14:58:04 +01:00
Alessandro Pasotti
6e85a893ea Correctly parse styles for layer in groups 2018-11-06 14:57:34 +01:00
Alessandro Pasotti
39e0b7be7a Restore subset string when fixing a bad layer 2018-11-06 14:57:04 +01:00
Alessandro Pasotti
7bf4e5b119 Do not check for geom equality when fixing a bad layer
re-apply the style with no checks for geometry type

This is a temporary workaround, the solution will probably
need some storage for the original geometry type.
2018-11-06 14:55:13 +01:00
Alessandro Pasotti
5ae2bae909
Merge pull request #8426 from SrNetoChan/new_bad_layer_logo
New bad layers icon for layers panel
2018-11-06 13:16:47 +01:00
Alexandre Neto
9916c5fbb7 New bad layers icon for layers panel 2018-11-06 11:57:26 +00:00
Alessandro Pasotti
36f115833e
Merge pull request #8425 from elpaso/handle-bad-layers3
Add symbology tests (rule based and categorized) to Handle bad layers
2018-11-06 11:17:34 +01:00
Alessandro Pasotti
7db1d4e8b4 Added test project with the bad layers (not used by tests)
but still useful for manual tests
2018-11-06 10:28:49 +01:00
Alessandro Pasotti
ba3ccca2dd Add rule-based and categorized styles to the bad layers test 2018-11-06 10:27:07 +01:00
Martin Dobias
45059297e4 [3d] Fix 3D line symbol in 3D views in print layouts (fixes #20118)
Turned out we were getting an old version of OpenGL that does not
support the "primitive restart" functionality and so wherever
a linestring should be broken it was connected through (0,0,0)
to the next linestring.
2018-11-06 09:27:35 +01:00
Alessandro Pasotti
c8b26771cf
Merge pull request #8359 from elpaso/handle-bad-layers2
[needs-docs][feature] Deferred handling of bad layers
2018-11-06 08:43:18 +01:00
Nyall Dawson
c54c559723 Ensure browser preview canvases don't get treated like map canvas
docks

They have their own special logic, and shouldn't respond to
any project based settings or triggers

Fixes #20362
2018-11-06 12:23:00 +10:00
Nyall Dawson
0ea86bf0a5 More old style connect removal 2018-11-06 08:45:37 +10:00
Nyall Dawson
7b24bd3f0b More old style connect removal 2018-11-06 08:45:37 +10:00
Nyall Dawson
bf21ce4661 Start fixing some remaining old style connects 2018-11-06 08:45:37 +10:00
Nyall Dawson
d1427945aa Address some clazy warnings 2018-11-06 08:45:37 +10:00
Nyall Dawson
3d5badf395 Fix some missing context arguments in connects with lambda
These cause infinite lifetime connections which result in crashes
2018-11-06 08:45:37 +10:00
Nyall Dawson
dc72f06e53 Bump minimum Qt version to 5.9 2018-11-06 08:45:37 +10:00
Luigi Pirelli
993dc81812
Merge pull request #8241 from NaturalGIS/fix_grass7_r_stats_quantile
fix GRASS7 r_stats_quantile
2018-11-05 22:25:37 +01:00
Matthias Kuhn
cd28b45984
Merge pull request #8391 from karomap/master
Fixes #18872 Fix symbol selector dialog overflows the screen on small resolution
2018-11-05 19:20:37 +01:00
Alessandro Pasotti
e70b71b154 Lower opencl message to warning so users don't panic 2018-11-05 17:26:02 +01:00
Matthias Kuhn
e9deafcf37
Merge pull request #8409 from DelazJ/renameFiles
Rename some rendererV2 ui files
2018-11-05 14:24:10 +01:00
Nyall Dawson
19ef2f904b Add missing /Factory/ annotation 2018-11-05 22:02:32 +10:00
Nyall Dawson
82baff87d4 Add a __repr__ method to QgsMimeDataUtils::Uri 2018-11-05 22:02:32 +10:00
Martin Dobias
e7900a38cb
Merge pull request #8411 from wonder-sk/slap-mssql-around-with-a-trout
Fix a bunch of MS SQL provider issues
2018-11-05 12:41:30 +01:00
Martin Dobias
68be6df376 Make sure topo editing button is updated on new/loaded project 2018-11-05 12:31:51 +01:00
Martin Dobias
93e737e4bf [vertex tool] Fix topo editing when moving vertices/edges (fixes #20158)
- when some "extra" vertices are selected when moving a vertex, their coincident
  vertices will be also moved (#20158)
- when moving an edge, coincident vertices to its endpoints will be also moved
- new tests to cover the above scenarios
- made the code hopefully easier to read
2018-11-05 12:31:51 +01:00
Martin Dobias
89a80c1b55 Read/write relative paths to gpkg rasters in project (when enabled)
Routines in raster layer were not aware of "GDAL:filename:table" syntax
used for raster layers from GeoPackages so project files were storing
absolute paths even when relative paths should have been used.
2018-11-05 12:31:01 +01:00
Alessandro Pasotti
64bd7a7ced Added ~QgsDataSourceSelectDialog destructor 2018-11-05 10:45:40 +01:00
Alessandro Pasotti
f02345bd8b Remove unnecessary project from test data 2018-11-05 10:27:02 +01:00