17538 Commits

Author SHA1 Message Date
Denis Rouzaud
d311aef8c7 add static method to test if layer matches QgsMapLayerProxyModel::Filters 2020-06-06 09:22:24 +02:00
Denis Rouzaud
91f71f51e9 fix dox + sip 2020-06-05 16:18:16 +02:00
Denis Rouzaud
961ffcc94e use QgsLayerTreeFilterProxyModel for layer dependency tree 2020-06-05 14:21:30 +02:00
Denis Rouzaud
3322d2bb64 add QgsLayerTreeFilterProxyModel to easily use a layer tree 2020-06-05 14:21:30 +02:00
Matthias Kuhn
a741700013
Merge pull request #36909 from m-kuhn/offline_editing_style_copy
Fix styles are not copied in offline editing
2020-06-05 07:27:02 +02:00
Nyall Dawson
8fb8e45d51 Ensure that fields required by marker symbol backgrounds for labels
are fetched when rendering

Fixes #36944
2020-06-05 08:53:06 +10:00
Nyall Dawson
6b27958948 Fix "zoom" and "flash" features buttons have no effect when opening
filter mode in attribute form

(For reference: not a regression -- these buttons were originally
added for the "select by form" dialog only, and they've just never
been hooked up for use inside the attribute form itself!)

Fixes #34506
2020-06-05 08:52:45 +10:00
Nyall Dawson
d74715c310 Add metadata to project for last save datetime alongside the existing
last saved username details
2020-06-05 08:41:00 +10:00
Nyall Dawson
1d995840ec Add API to set an "original path" for QgsProject
This is intended for use with non-qgs/qgz project files
(see QgsCustomProjectOpenHandler) in order to allow custom project open handlers
to specify the original file name of the project. For custom project formats,
it is NOT appropriate to call setFileName() with the original project path, as
this causes the original (non QGIS) project file to be overwritten when the
project is next saved.
2020-06-05 08:41:00 +10:00
Nyall Dawson
33fb57e4a0 Also restrict scope of Ctrl+A select all shortcut to avoid ambiguity 2020-06-04 10:59:27 +10:00
Nyall Dawson
873716c6fa Limit scope of Ctrl+C shortcut for copy features to canvas and for
python console to console widget

Avoids ambiguous shortcut warnings/unexpected behavior when pressing
Ctrl+C

Fixes #27035
Fixes #31918
Fixes #31914
Fixes #31392
2020-06-04 10:59:27 +10:00
Alexander Bruy
9e27f1487c fix menu entry for Split Vector Layer algorithm 2020-06-04 05:36:19 +10:00
Matthias Kuhn
68574d9835 [api] Add QgsMapLayerStyleManager::copyStylesFrom 2020-06-03 14:37:57 +02:00
nirvn
af474eaf81 [python console] Deal with remaining vanishing prompt scenarios 2020-06-03 17:31:45 +07:00
nirvn
bbdc9068b0 [python console] Additional tweaks to new prompt 2020-06-03 14:15:09 +07:00
nirvn
2a25c1847d [python console] Improve key up/down press for multiline command string 2020-06-03 14:15:09 +07:00
Nyall Dawson
48c465e9b5 [processing] Port "Aggregate" algorithm to c++
No more silly breakages!

Refs #36843
2020-06-03 15:17:56 +10:00
Nyall Dawson
d5a340f886 [processing] Port aggregates widget wrapper to c++
And add a TON of tests

Fixes #36843
2020-06-03 15:17:56 +10:00
Nyall Dawson
4fdfa949cf [processing] Start porting Aggregates parameters to C++
Port parameter type to c++
2020-06-03 15:17:56 +10:00
nirvn
2f36e18d11 [python console] Add help links to the PyQGIS API and Cookbook pages 2020-06-03 11:45:13 +07:00
nirvn
296fc6cf89 [python console] Move the >>> prompt into the margin to fix a gazillion issues 2020-06-03 11:45:13 +07:00
Even Rouault
b4f5b48b35
Merge pull request #36873 from rouault/cppcheck_gh_action
Fix remaining cppcheck warnings, add scripts/cppcheck.sh and corresponding GH workflow jobs
2020-06-03 00:17:47 +02:00
vcloarec
9fec5262b0 update SIP 2020-06-03 06:10:10 +10:00
Even Rouault
729a2f1482
regenerate qgslayertreenode.sip.in 2020-06-02 13:56:22 +02:00
Even Rouault
cc1488fce9
Many classes: mark assignment operator as deleted due to existence of copy constructor 2020-06-02 13:56:18 +02:00
Nyall Dawson
0495251355 Move help button creation to correct place 2020-06-02 16:48:36 +10:00
Juernjakob Dugge
4094d1800d Re-center the map when zooming with active scale lock
Fixes #30023
2020-06-02 14:23:07 +10:00
Nyall Dawson
eee4327168 Add "contains" method to QgsObjectCustomProperties, improve dox, add tests 2020-06-02 11:32:14 +10:00
Nyall Dawson
4a125f607f Reduce number of expression evaluations in legend rendering
...by caching previous results and using them, until the layout is refreshed
2020-06-02 11:32:14 +10:00
uclaros
43e3e63bec
Support for polygons with holes in QgsRubberBand
Added support for polygons with holes to QgsRubberBand
Fixes #34399
2020-06-02 09:12:54 +10:00
Nyall Dawson
c77436d71e Dox 2020-06-02 08:43:54 +10:00
Nyall Dawson
4c2f2c09a2 [processing] Correctly expose complete expression context for use
in Refactor Field expressions
2020-06-02 08:43:54 +10:00
Nyall Dawson
b4c3acd447 Remove unused file 2020-06-02 08:43:54 +10:00
Nyall Dawson
f0bb647c61 [processing] Add a stable way to get processing widgets to stretch vertically 2020-06-02 08:43:54 +10:00
Nyall Dawson
146094f6b2 [processing] Port field mapper wrapper and widget to c++
Fixes #36706
2020-06-02 08:43:54 +10:00
Nyall Dawson
dbe9aa0902 [processing] Port Refactor Fields to c++
Having this core algorithm in Python has proved just too unreliable

Refs #36706, refs #36843
2020-06-02 08:43:54 +10:00
Nyall Dawson
191e362ed4 Move FieldMapper parameter type to c++
Fixes sip "forgeting" about Python overrides for the type definition

Refs #36706
2020-06-02 08:43:54 +10:00
Nyall Dawson
95387cfa3b Add map support to QgsProcessingUtils::variantToPythonLiteral 2020-06-02 08:43:54 +10:00
Even Rouault
6fd336ce02
effects: mark assignment operator as deleted due to existence of copy constructor 2020-06-01 23:46:05 +02:00
Even Rouault
98d7b99d71
diagram: mark assignment operator as deleted due to existence of copy constructor 2020-06-01 23:46:05 +02:00
Even Rouault
a8de679601
Merge pull request #36836 from rouault/cppcheck_fixes2
Another batch of cppcheck fixes
2020-06-01 19:53:34 +02:00
Alexander Bruy
18c781f167
Merge pull request #36822 from alexbruy/interpolation-pixel-size
fix calculating raster size in the TIN and IDW algorithms to maintain accurate pixel size (fix #31970)
2020-05-31 08:35:15 +03:00
Matthias Kuhn
9729a43df7
Merge pull request #36828 from m-kuhn/followup_36823
Address review comment from #36823
2020-05-30 11:25:20 +02:00
Matthias Kuhn
ffc5033976
Merge pull request #36827 from m-kuhn/win_newlines
Fix windows newlines replacement in db manager query layer
2020-05-30 11:24:40 +02:00
Alessandro Pasotti
51be73e99e
Merge pull request #36802 from elpaso/bugfix-36468-unique-tests
Fix GPKG and Spatialite UNIQUE and NOT NULL constraints detection
2020-05-30 08:14:08 +02:00
Even Rouault
c70e180df1
QgsGraphBuilder: declare deleted copy constructor and assignment operators as the class has pointer member variables 2020-05-29 23:30:20 +02:00
Matthias Kuhn
b1307d241c Address review comment from #36823 2020-05-29 16:29:46 +02:00
Matthias Kuhn
d8fa7e2df4 Fix windows newlines replacement in db manager query layer
Fixes #36825
2020-05-29 15:50:09 +02:00
Alessandro Pasotti
d82c3fe5ad Remove uniqueFields from Python bindings 2020-05-29 13:40:34 +02:00
Alessandro Pasotti
fa7177a056 UNIQUE fields detector for sqlite based providers
This is a temporary solution for OGR because we expect
to use the native GDAL implementation in GDAL 3.2.

For now a new method QgsSqliteUtils::uniqueFields
used by spatialite and OGR/GPKG is used to detect
UNIQUE constraints on single fields.
2020-05-29 13:40:34 +02:00