66014 Commits

Author SHA1 Message Date
Nyall Dawson
fe5615ea44 Hold the GIL for more geometry related methods 2020-09-18 11:50:27 +10:00
Alessandro Pasotti
3d67b37b4a Add missing import for new test 2020-09-18 11:06:20 +10:00
Alessandro Pasotti
67b5540263 Fix PG trust metadata layer loading
Fixes #38809

Followup 760347c3b6a95129db677a1915d90190779eaad5
2020-09-18 11:06:20 +10:00
Even Rouault
3d0a14e1dc VectorFileWriter/OGR provider: workaround GDAL 3.1.x bug regarding XLSX and ODS creation
GDAL 3.1.0 to 3.1.3 will create XLSX and ODS files with ZIP64 extensions,
which make them incompatible of current LibreOffice versions.

This has been fixed in GDAL now, but this can be workaround on QGIS side too
if using those buggy versions.
2020-09-18 11:05:46 +10:00
Blottiere Paul
dd9e0ba5ae Keep cached status up to date. Fixes #37326 2020-09-18 11:01:14 +10:00
Peter Petrik
24cfedf03f fix #32511 always detect GRASS installation folder on MacOS 2020-09-18 10:56:44 +10:00
Julien Cabieces
f1f14e49e3 Fixes #37038: Fix drag and drop field order in designer 2020-09-18 10:55:17 +10:00
Even Rouault
fbe56750b4 Coordinate operation widget: avoid repeating scope and remarks
For coordinate operations that are not concatenated operations, we
currently display twice the scope and remarks. Let's strip a bit of
text to avoid confusing users even more :-)
2020-09-18 10:54:22 +10:00
Matthias Kuhn
9e654ca388
Merge pull request #38641 from domi4484/mssqldefaultvalues
Implemented method QgsMssqlProvider::defaultValue
2020-09-17 22:22:39 +02:00
Nyall Dawson
44fb4f5f85 Dox 2020-09-18 04:34:57 +10:00
Nyall Dawson
d4a2dddac5 Tag some inexpensive, frequently called methods with the HoldGIL annotation
This prevents the Python GIL from being released before calling the method
(which is the default behaviour). For very cheap to call c++ methods the
cost of releasing the GIL can outweigh the cost of the c++ call, which means
it's more efficient to retain the hold on the GIL.

Ideally we'd do this everywhere, and switch to an explicit ReleaseGIL
annotation on functions which are slow or risky (raise exceptions, or
do something which can cause a GIL deadlock). But those are very tricky
to identify, so instead just explicitly hold the gil on cheap methods
which are likely to be called many times and could have an impact on
script performance.
2020-09-18 04:34:57 +10:00
Even Rouault
cc70b9f9c1
Merge pull request #38769 from rouault/fix_38298
[GUI] Raster histogram: restore behavior before #35465 changes
2020-09-17 15:10:41 +02:00
Matthias Kuhn
8609a729c6
Merge branch 'master' into mssqldefaultvalues 2020-09-17 14:28:54 +02:00
Denis Rouzaud
527a08ca5e
fix merge conflict (#38835) 2020-09-17 14:18:19 +02:00
Alessandro Pasotti
8ed98f64fd
Merge pull request #38815 from elpaso/bugfix-gh38716-marker-line-dd-angle
Set the line angle instead of the symbol angle
2020-09-17 12:25:33 +02:00
nirvn
d03e172838 [themes] Fix night mapping checkbox glitches when embedded into table (et cie) widgets 2020-09-17 16:46:26 +07:00
nirvn
52c31437bb [themes] Fix blend of gray checkbox glitches when embedded into table (et cie) widgets 2020-09-17 16:46:26 +07:00
Nyall Dawson
c44178f517 Fix seealso link 2020-09-17 19:10:52 +10:00
Nyall Dawson
49e9b613b8 [layouts] Keep a separate flag for whether only a subset of layers
are to be clipped from the project, instead of just tracking this
by the presence of any checked layers

Avoids inconsistencies between the layers which are visibly clipped
on the map vs the options which are set in the GUI.
2020-09-17 19:10:52 +10:00
Peter Petrik
fce4b27644
fix #35147 QgsMeshLayer map canvas rotation rendering (#38795)
fix #35147 QgsMeshLayer map canvas rotation rendering
2020-09-17 10:44:58 +02:00
Denis Rouzaud
5ca4ef8f3d
QgsField::ConfigurationFlags: use a negative form for the flags so th… (#38805)
* QgsField::ConfigurationFlags: use a negative form for the flags so that default flags is None

this will make this futureproof, so newly added flags won't cause trouble for compatibility with old projects

* follow up

* remove template class

* fix order of init

* follow up

* Revert "update test projects (open and save)"

This reverts commit c738609d9177ed398ba2a0ae0e1c16448accd5f6.

* DoNotExposeVia -> HideFrom
2020-09-17 10:31:22 +02:00
Alessandro Pasotti
7f92487454
Merge pull request #38816 from elpaso/bugfix-landingpage-wfsexposed
Update tests and fix wfs exposed fields list
2020-09-17 10:07:02 +02:00
Alessandro Pasotti
d66d2b655e
Merge pull request #38764 from elpaso/bugfix-gh38558-server-wfst-1.1.0-wrong-case
Fix server WFS-T 1.1.0 wrong case in transaction response
2020-09-17 10:06:29 +02:00
Alessandro Pasotti
247a399901 Add test for issue #38716 2020-09-17 09:42:51 +02:00
nirvn
445d78f7cc Add a plugin interface to add pages to the project properties dialog 2020-09-17 13:48:57 +07:00
Nyall Dawson
965595d25b [processing] Fix certain characters show as HTML escaped in processing log
Fixes #37934
2020-09-17 16:38:34 +10:00
Nyall Dawson
92d0ec59a1 [hig] Fix incorrect capitalization in title of new layout name dialog 2020-09-17 16:16:27 +10:00
Juergen E. Fischer
b20f57f0a5 translation string fixes 2020-09-17 08:12:14 +02:00
Juergen E. Fischer
0f2b53c949 osgeo4w: avoid placing grass' rstudio path in front of osgeo4w qt 2020-09-17 08:12:14 +02:00
Juergen E. Fischer
934d81c708 fix warnings 2020-09-17 08:12:14 +02:00
Juergen E. Fischer
8ee86d01a8 remove duplicate trailing ; 2020-09-17 08:12:14 +02:00
Juergen E. Fischer
b3e7230ac2 mssql provider:
* add missing support for non-integer and compound keys
* update unit tests
* unify time handling: iterator / minimumValue / maximumValue / uniqueValues
2020-09-17 08:12:14 +02:00
Nyall Dawson
484ba6f979 [labeling] Add a new capitalization option for "Title Case", and
rename the confusing "Capitalize First Letter" option to
"Force First Letter to Capital"

This change is intended to clarify the role of the "capitalize
first letter" option, and to provide an option which actually
does what users expect the "capitalize first letter" option
to do.

Fixes #16539
2020-09-17 09:33:51 +10:00
Nyall Dawson
6bd3dc54f8 Title case conversion works correctly on all uppercase string inputs 2020-09-17 09:33:51 +10:00
Even Rouault
ae71913cd3 UI: better information message when toggling off edition mode on a transaction group
Previously, we always displayed the name of the layer we toggled off, even if
it was not modified, which could be confusing.
Now we will display up to two layer names that have been modified.
2020-09-17 09:30:40 +10:00
Even Rouault
92ed4509fb Transaction and Geopackage datasets: make it work when the layer whose edition is turned off hasn't been modified (fixes #38697)
We cannot use QgsDataSourceUri::connectionInfo() as it returns an empty string
for OGR datasources. So use QgsTransaction::connectionString() as in other places.
2020-09-17 09:30:21 +10:00
Peter Petrik
cbdda422b0 fix segmentation fault 11 on MacOS during closing QGIS 2020-09-17 09:24:02 +10:00
Julien Cabieces
7bd1017df7 Fixes #37503 : add actions to the tableview so they triggered by shortcut 2020-09-17 09:23:22 +10:00
Nyall Dawson
fb759b0815 Fix build warning 2020-09-17 08:43:14 +10:00
Even Rouault
ecc840564b Expression preview widget: do not disable feature picker (fixes #38646)
In the text edit of the feature picker, if one currently enters an invalid value,
the whole feature picker becomes disabled, which requires to close and re-open
the expression string builder dialog.

So instead of doing this, use the preview label to indicate that a valid
feature is needed to evaluate the expression, for expressions that require feature
fields.

Previous related pull requests are:
https://github.com/qgis/QGIS/pull/37518
https://github.com/qgis/QGIS/pull/37139
2020-09-17 07:33:55 +10:00
Alessandro Pasotti
e79103e354 Spelling 2020-09-17 07:28:45 +10:00
Alessandro Pasotti
cbb0cb3f1c Add a warning about the usage of setInstance 2020-09-17 07:28:45 +10:00
Alessandro Pasotti
a782420153 Update SIP 2020-09-17 07:28:45 +10:00
Alessandro Pasotti
c80093c47a Expose QgsProject::setInstance to API
Fixes #38755

Needs forward porting to all active branches
2020-09-17 07:28:45 +10:00
Nyall Dawson
f018252023 Add a Legend category to the style selection widgets and allow
legend settings to be stored and restored in QML

Fixes #37683
2020-09-17 07:27:34 +10:00
Nyall Dawson
98c2000868 Reword Field option in style category menu to make it clearer that
it includes the widget configuration

Fixes #28087
2020-09-17 07:27:09 +10:00
Nyall Dawson
1ad2e78735 Use QgsVectorLayerSaveStyleDialog when saving style from main window
right click menu

Fixes #29145
2020-09-17 07:26:50 +10:00
Nyall Dawson
2eff061bf3 [browser] Correctly save expanded node state when closing QGIS
Otherwise browser expanded nodes are never saved, and the browser
always returns to some random previous state
2020-09-17 07:26:29 +10:00
Nyall Dawson
0234d4e9e1 [browser] Gpkg and other container types can be dragged to the map
to allow layers to be added from them

Otherwise it's impossible to select multiple gpkg files from the
browser to add them all at once, and users have to add them
one-by-one
2020-09-17 07:26:11 +10:00
Julien Cabieces
7e8c7b3d0e Fixes #38796 : Fix serialization of QgsWeakRelation field pair 2020-09-17 07:25:23 +10:00