51408 Commits

Author SHA1 Message Date
Nyall Dawson
1bf63f1331 QStringLiteral 2018-10-22 09:30:32 +10:00
Alessandro Pasotti
b379d75e1f
Merge pull request #8249 from tudorbarascu/fix_addpart
fix addpart tool warning
2018-10-21 21:27:20 +02:00
Juergen E. Fischer
f963ba32ea fix fcf85a199a94aac 2018-10-21 11:41:52 +02:00
Denis Rouzaud
7e3b5f40b8
Merge pull request #8247 from 3nids/maptoolzoom
fixes to the map tool zoom
2018-10-20 18:44:58 -08:00
Denis Rouzaud
f17b1a5219 restore zoom out rect 2018-10-20 19:55:22 -04:00
Tudor Bărăscu
5168d7d98b fix addpart tool warning
The isGeometryEmpty variable was true when geometry was present and viceversa.
Thus the warning for multiple parts for single geometry was giving false positives and
negatives.
2018-10-20 23:31:37 +03:00
Juergen E. Fischer
fcf85a199a fix build on Qt <5.6 2018-10-20 20:35:39 +02:00
Alessandro Pasotti
dcd33186bb [in-place] Fix alg runner when context is none 2018-10-20 10:05:48 +02:00
Alessandro Pasotti
99f3419446 Extend documentation of QgsFeatureRequest::setSubsetOfAttributes
Like suggested by Nyall
2018-10-19 22:44:31 +02:00
Alessandro Pasotti
71e85cc0b8
Merge pull request #8231 from elpaso/bugfix-20147-in-place-difference
[in-place][needs-docs] add buffer for polygons and fix #20147 in place difference
2018-10-19 22:40:57 +02:00
Denis Rouzaud
5fd6f68701 Zoom tool: do not draw rect when zooming out, update cursor when pressing alt 2018-10-19 16:33:48 -04:00
Denis Rouzaud
773167411c add isActive to QgsMapTool and update cursor when it is active 2018-10-19 16:33:48 -04:00
Denis Rouzaud
b3e526338b [fix #18892] avoid high jumps by setting a minimum pixel size for rect in map tool zoom 2018-10-19 16:33:48 -04:00
Nyall Dawson
f00e43d3c2 [layouts] Hack around inconsistent subclassing of layout items by sip
Sometimes, calling some layout methods, results in sip being inable
to downcast the items to their correct type, resulting only
in a QgsLayoutItem object.

This works around the problem, albeit in an incredibly hacky way.
2018-10-20 06:19:34 +10:00
Nyall Dawson
0a662576a7 [layouts] Show more precision in map scale for map item properties
Previously we would often round the scale displayed to the nearest
integer. Now ensure that the map scale widget shows more decimals
to allow verification that the actual map scale exactly matches
the desired scale.

Fixes #20133
2018-10-20 06:18:51 +10:00
Denis Rouzaud
fb2883c79c
Merge pull request #8242 from 3nids/final_dpi
[fix #17773] fix HiDPI in map canvas on mac
2018-10-19 10:56:27 -08:00
Denis Rouzaud
345d25f779
remove useless variable 2018-10-19 14:56:09 -04:00
Denis Rouzaud
ff1face71d more dox 2018-10-19 13:46:10 -04:00
Denis Rouzaud
c1ce03cd3b test that window handle actually exists (avoid crash in tests) 2018-10-19 13:46:01 -04:00
Denis Rouzaud
dff0496961
use floating point precision and use proper setFlags method (#8244) 2018-10-19 08:18:42 -08:00
Alessandro Pasotti
21e685b46f [in-place] Limit buffer to (multi)polygons 2018-10-19 16:37:54 +02:00
Denis Rouzaud
35ec465847 update DPR on screen or resolution change 2018-10-19 10:30:04 -04:00
Alessandro Pasotti
adb930b204 Speed up getFeatures query by using a proper QgsFeatureRequest 2018-10-19 16:27:18 +02:00
Denis Rouzaud
b4e87d873e use float precision 2018-10-19 10:07:05 -04:00
Denis Rouzaud
09d2260b86 rename physicalSize to deviceOutputSize 2018-10-19 09:53:42 -04:00
Denis Rouzaud
924e375f48 fix wrong assert 2018-10-19 09:33:30 -04:00
Denis Rouzaud
556210bb6d avoid scaling in painting when possible
not sure how it works internally in Qt, but no need to call epxlicitely on scaling since the image device pixel ratio is set
2018-10-19 08:50:17 -04:00
Denis Rouzaud
ea982fe3d2 [fix #17773] fix HiDPI in map canvas on mac
For system introducing pixel device ratio, the image rendered by the canvas is actually scaled up to match the physical size of the canvas"
2018-10-19 08:50:12 -04:00
Juergen E. Fischer
7ad0dcfa71 Fix windows build 2018-10-19 12:21:14 +02:00
Matthias Kuhn
763fa420ac
Merge pull request #8216 from rouault/fix_20136
[OGR provider] Revise significantly the way we handle subset filter to avoid issues with FID (fixes #20136)
2018-10-19 10:03:05 +02:00
Nyall Dawson
f23b09b845 [needs-docs][layouts] Expose menus and toolbars (and some other goodies) to stable
layout designer interface API

This commit adds more methods to the public, stable API for the layout
designer dialog, allowing plugins and scripts greater flexibility
in extending and hooking into the layout designer.

New API includes:
- access to the main menus shown in the dialog, allowing custom actions
to be added to the dialog
- access to the dialog's toolbars
- methods for adding (and removing) additional dock widgets to the designer
- the method used to show/hide rulers in the designer
2018-10-19 11:53:04 +10:00
Nyall Dawson
c28c314f15 [layouts] Fix incorrect data defined help for some map settings 2018-10-19 11:50:36 +10:00
Nyall Dawson
2449be382e QStringLiteral 2018-10-19 10:15:59 +10:00
Nyall Dawson
312c688151 Remove redundant mutex locks 2018-10-19 10:15:59 +10:00
Nyall Dawson
ac0a188112 [needs-docs] Allow users to set tokens for connections to ArcGIS Feature/Map servers
Without this it can be impossible to connect to authenticated/private
servers.

Tokens are set by creating an "ESRI token based authentication" method from
the standard QGIS Authentication settings and associating with the
connection.
2018-10-19 10:15:59 +10:00
Nyall Dawson
ffdf39eb6e Modernize some code 2018-10-19 10:15:59 +10:00
Matthias Kuhn
ac4f7b5f55 Allow searching for features with a short search string 2018-10-19 09:07:20 +10:00
Giovanni Manghi
a151debcc1 fix GRASS7 v_cluster tool 2018-10-19 08:34:42 +10:00
Nyall Dawson
1500c3eecb Fix dox 2018-10-19 08:32:56 +10:00
Nyall Dawson
5d9d903fb0 Move browser proxy model to core library and expose as stable API
This class is useful for plugins and other areas of QGIS code which
want to expose a limited browser interface (e.g. a vector layer
only type layer picker)

Also add unit tests
2018-10-19 08:32:56 +10:00
Nyall Dawson
3543d34dea Use a switch 2018-10-19 08:32:56 +10:00
Nyall Dawson
72bf08e2b7 Deprecate QgsBrowserModel::connectItem
This method should only be private, and is completely dangerous
to call from external code (it breaks the model!).

Deprecate and replace with a no-op
2018-10-19 08:32:56 +10:00
Nyall Dawson
ac3fe8ff23 More unit tests 2018-10-19 08:32:56 +10:00
Nyall Dawson
765dbf6ae7 Dox, tests 2018-10-19 08:32:56 +10:00
Nyall Dawson
67f1e10ea8 More unit test for QgsBrowserModel 2018-10-19 08:32:56 +10:00
Nyall Dawson
4d18eeecbe Fix incorrect hasChildren return value when QgsBrowserModel
has no root items
2018-10-19 08:32:56 +10:00
Alessandro Pasotti
71e2a6be7e In-place passthrough for invalid geometries if processing option is to skip invalid
Fixes #20147 - difference deletes invalid geometries
2018-10-18 17:43:00 +02:00
Alessandro Pasotti
51c3c2a618 Enable in-place buffer on polygons
Fixes #20101 - "Buffer" is not listed as an edit in place algorithm for polygon layer
2018-10-18 17:41:25 +02:00
Alessandro Pasotti
89058baeeb setInvalidGeometryCheck on the request 2018-10-18 17:40:56 +02:00
Alessandro Pasotti
5393df88ac Fixed documentation: FetchAttributes does not exist 2018-10-18 17:39:26 +02:00