60497 Commits

Author SHA1 Message Date
Nyall Dawson
bb71b713ec Add helper method to read encoding from shapefile .cpg or LDID information
Ported from the GDAL logic, which unfortunately is not available
for re-use directly from GDAL.
2020-02-13 09:32:02 +10:00
Radoslaw Guzinski
550c8bf341 [Processing] Fix isEnabled check for modeler context menu actions
This aligns the check with Processing scripts context menu actions and allows subclasses of QgsProcessingModelAlgorithm to register their own actions.
2020-02-13 08:39:44 +10:00
Alessandro Pasotti
2024fb5683 Fix spatialite crash on field added
Fixes #34375

Add a check for the field index validity, but the issue was really
an undesired side effect of the spaghetti-signal-slot hell.
2020-02-13 08:38:03 +10:00
Nyall Dawson
1c53c7744b Fix labels don't render when mode is set to "From Symbol Bounds" and
features are not set to be obstacles for other labels
2020-02-13 08:34:34 +10:00
Juergen E. Fischer
b5f76d5f67 debian packaging: add ubuntu focal and drop disco 2020-02-12 20:34:46 +01:00
Denis Rouzaud
6a16ee8b7b
Merge pull request #34433 from 3nids/dnd_part2
drad'n'drop improvents part 2
2020-02-12 19:33:10 +01:00
Hugo Mercier
0e63de6837
Do not try to compute the center of a segment of null length (#34407)
Fix #34396
2020-02-12 16:40:53 +01:00
Matthias Kuhn
ac8b7c0b18
Merge pull request #34420 from m-kuhn/expression_group_binary_if_in_unary
Fix parentheses in QgsExpression::dump()
2020-02-12 16:06:34 +01:00
mhugent
2f50c0acb3
Merge pull request #34425 from mhugent/wfs_layer_output_format
WFS: support all GetFeature output formats for all layers
2020-02-12 15:25:10 +01:00
Alessandro Pasotti
e6c9378464
Merge pull request #34431 from elpaso/server-reduce-noise
Reduce noise in server output
2020-02-12 15:23:16 +01:00
Denis Rouzaud
935dc28d5d drad'n'drop improvents
part 2

display the container editor in the right panel
this avoids opening a modal dialog

a new type of itemData has been added as WidgetType
to distinguish them in the available widgets from the containers in the form layout

fixes #29063
2020-02-12 14:38:32 +01:00
Denis Rouzaud
2770e6a725
[FEATURE] Merge pull request #34411 from 3nids/dnd_sync_selec
improvement of the Drag'n'Drop designer
2020-02-12 14:08:31 +01:00
Denis Rouzaud
4980adbe19
QgsMapLayerAction: add legend context menu entry for action on selection (#34354)
A new menu entry (Actions on selection) is added to the layer tree context menu
It is shown only when required (layer has selection and actions can be run on the given layer)
2020-02-12 13:37:25 +01:00
Alessandro Pasotti
990c0e2742
Merge pull request #34423 from elpaso/bugfix-gh34379-spatialite-aspatial-add-features
Fix spatialite aspatial add features
2020-02-12 13:17:47 +01:00
Denis Rouzaud
4671da5271
fix crash 2020-02-12 13:10:43 +01:00
Alessandro Pasotti
da589c1496 Reduce noise in server output 2020-02-12 12:28:01 +01:00
Marco Hugentobler
ad3db5e786 Adapt unit test output 2020-02-12 12:08:36 +01:00
Marco Hugentobler
03b3bc7218 WFS: support all GetFeature output formats for all layers 2020-02-12 10:54:05 +01:00
Alessandro Pasotti
ac65ff2d40 Fix spatialite aspatial add features
Fixes #34379
2020-02-12 10:12:07 +01:00
Matthias Kuhn
71425c0eae Fix parentheses in QgsExpression::dump()
QgsExpression('NOT (1 or 2 or 3)').dump() previously returned 'NOT 1 or 2 or 3'.

This is especially painful since QGIS as WFS client translates 'attribute NOT IN (1, 2, 3)' to an ogc filter of the form 'NOT ( attribute = 1 or attribute = 2 or attribute = 3 )' which would be translated back to a faulty expression on the wfs server.
2020-02-12 07:54:23 +01:00
Matthias Kuhn
0fd99f32ab Fix backport bot instant trigger 2020-02-12 11:15:31 +10:00
Denis Rouzaud
181bfd4fb8
fix ownership issues in dualview/attributetable (#34403)
* fix ownership issues in dualview/attributetable

correctly fix #33120

* update dox + bindings
2020-02-11 20:49:19 +01:00
Alessandro Pasotti
79ee761cda
Merge pull request #34368 from uclaros/fix_ogrprovider_setsubsetstring
Fix setSubsetString return value on error
2020-02-11 18:58:01 +01:00
Denis Rouzaud
d1126c3a12 remove warnings, use modern style cast 2020-02-11 17:26:52 +01:00
Denis Rouzaud
c03a8c9f47 improvement of the Drag'n'Drop designer
* do not show editor when several fields are selected
* synchronize selection both ways

fixes #28570
2020-02-11 17:06:34 +01:00
lbartoletti
71f851bc73 avoid code duplication 2020-02-11 15:41:06 +10:00
lbartoletti
879294df72 Fix identify menu when an expression is used as display name 2020-02-11 15:41:06 +10:00
Matthias Kuhn
ef108f3538 Reduce noise from workflows (#34372)
Only trigger workflows to doc and backport when appropriate
2020-02-10 08:39:33 +01:00
nirvn
77f47f0da9 [edit widgets] Fix text edit right-click menu item background
when widget is disabled (fixes #29542)
2020-02-10 12:14:55 +07:00
denchat
249c75b993 Set up an OpenGL Context to be shared between threads beforehand
Allows for plugins that depend on Qt WebEngine module.
2020-02-10 13:48:37 +10:00
Nyall Dawson
9cdf76a9a2 Fix geometry save/restore for snapping configuration dialog, make
dialog a Tool window type
2020-02-10 11:25:25 +10:00
José de Paula Rodrigues N. Assis
b4c359a56b
Fixes empty tracebacks for user Python code
Moving python traceback collection to within runStringUnsafe() so other
threads don't clear the global error status before we have a chance to
display it to users.

fix #34370, #31235
2020-02-10 10:39:45 +10:00
lbartoletti
58f1206748 Fix build with txt2tags >= 3.5 2020-02-09 18:53:04 +01:00
uclaros
2218bd1203 spelling 2020-02-09 18:06:15 +02:00
uclaros
5bf937f070 Added tests for malformed subsetstrings on the ogr provider 2020-02-09 16:12:53 +02:00
nirvn
3c64bbdcf9 Make QgsExifTools QML friendly 2020-02-09 12:20:20 +07:00
Matthias Kuhn
577e7210db Merge pull request #33952 from m-kuhn/server_wms_equal_layer_name
[server] do not drop layers with duplicate names
2020-02-08 23:04:49 +01:00
uclaros
0b4cc5adae Fix setSubsetString return value on error 2020-02-08 13:05:50 +02:00
Nyall Dawson
c76c390405 Separate display role from cell content role in table editor, so that
we can show properly formatted numbers in the table editor for cells
with a numeric format set
2020-02-08 15:18:14 +10:00
Nyall Dawson
b38d78ea15 [layouts] When editing a manual table contents in the editor dialog,
make the cell editor delegate auto-expand to fit the cell contents

Makes the editor more spreadsheet-style and easier to use
2020-02-08 15:18:14 +10:00
Nyall Dawson
44b2518d9b QT_PLUGINS_DIR is still required 2020-02-08 15:17:47 +10:00
Nyall Dawson
8eb3e58a6c No more setTime_t 2020-02-08 15:17:47 +10:00
Nyall Dawson
d4f7bb9024 No more QSqlError::number() 2020-02-08 15:17:47 +10:00
Nyall Dawson
38ea5c176c Remove qGreater use 2020-02-08 15:17:47 +10:00
Nyall Dawson
8b21a5baa6 Deprecate QSqlError constructor 2020-02-08 15:17:47 +10:00
Nyall Dawson
6340fb5591 Spelling 2020-02-08 15:17:47 +10:00
Nyall Dawson
57bba33fa7 Update modeltest files 2020-02-08 15:17:47 +10:00
Nyall Dawson
d644ca3878 Another one 2020-02-08 15:17:47 +10:00
Nyall Dawson
ca039a9749 Fix Qt 5.9 build 2020-02-08 15:17:47 +10:00
Nyall Dawson
5fb9977acf Missed one 2020-02-08 15:17:47 +10:00