65898 Commits

Author SHA1 Message Date
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
Blottiere Paul
1bd78908ee Replace PS character. Fixes #37803 2020-09-17 07:24:21 +10:00
Alessandro Pasotti
4743c67420 Update tests and fix wfs exposed fields list 2020-09-16 18:41:51 +02:00
Alessandro Pasotti
2018edbec0 Set the line angle instead of the symbol angle
Fixes #38716
2020-09-16 18:25:48 +02:00
Alessandro Pasotti
5fc05e2d11
Merge pull request #38801 from elpaso/bugfix-gh38552-value-relation-null-with-linedit
Fixes value relation line edit not found values
2020-09-16 17:28:54 +02:00
Denis Rouzaud
bc3d8fd988
Merge pull request #38285 from uclaros/split-add-topo-all-layers
Add topological points to all editable layers on split feature
2020-09-16 17:19:43 +02:00
nirvn
bc1511cecf Skip line-pattern conversion, not supported yet 2020-09-16 20:18:46 +07:00
Matthias Kuhn
8929e74a57
Merge pull request #38101 from DelazJ/fixInstall
Typo, URL and formatting in the build instructions
2020-09-16 13:19:44 +02:00
Alessandro Pasotti
448f7d9d81 Fixes value relation line edit not found values
When there is no match in the relation layer,
show "(no selection)" instead of NOT updating
the widget (which was the reported issue).

Fixes #38552
2020-09-16 12:09:19 +02:00
Nyall Dawson
15975c1d51 Don't prompt for CRS for annotation layers
Fixes #38739
2020-09-16 19:45:41 +10:00
Alessandro Pasotti
49037e050a
Merge pull request #38763 from elpaso/bugfix-gh38567-pg-unrestricted-geometry-srid
PG unrestricted geometry: trust SRID from geometry_columns
2020-09-16 08:11:41 +02:00
Denis Rouzaud
f6c98ec5f1
Merge pull request #38730 from 3nids/conf-flag-check-cb
Use a checkable combobox for fields configuration flags
2020-09-16 07:02:17 +02:00
Even Rouault
40259f6e3e Fix typo in name of QgsFeaturePickerModelBase::identifierIsNull() method
This is a protected virtual method, not exposed to SIP. So this should cause
no compatibility issue.
2020-09-16 12:11:25 +10:00
Nyall Dawson
f1c0fe259f Fix calculation of zoom level for vector tiles
Previously the code was calculating the exact zoom level (a double
value) and then rounding this to an integer in order to determine
which rules should be applied.

This appears to violate the vector tile styling specifications,
which are designed to "round down" the zoom level, so that styling
rules like:

- layer zoom range: 12-22
- interpolated expression:
  case when @zoom_level > 12 and @zoom_level <= 14 then 1
  when @zoom_level > 14 and @zoom_level < 18 then 2
  when @zoom_level >=18 then 4 end

work correctly when the exact zoom level is just less than 12, e.g. 11.8

So now we use floor when converting a zoom level to int so that the
styling rules work correctly.

Additionally, this adds a new @vector_tile_zoom expression variable
which contains the original double value of the calculated tile zoom
(not the integer one used for layer visibility). Many mapbox GL styling
rules rely on non-integer zoom levels for interpolation, e.g.

Case when @vector_tile_zoom >= 11.2 then 4 ...

This change allows for smooth interpolation between zoom levels which
matches the web map appearance, instead of "jumpy" fixed level interpolation
we previously had.
2020-09-16 12:08:39 +10:00
Even Rouault
079f340e99 [GUI] Identification result: fix warning 'CRITICAL Qt : QTableWidget: cannot insert an item that is already owned by another QTableWidget' (fixes #37215) 2020-09-16 09:09:44 +10:00
Denis Rouzaud
ab6676755b put back old code 2020-09-15 23:51:55 +02:00
Even Rouault
53c5c337ec [Algorithms] JoinByNearest: accept max_distance == 0.0 (fixes #38761) 2020-09-16 06:15:11 +10:00