44907 Commits

Author SHA1 Message Date
Nyall Dawson
71cdb8cf8e Fix QgsVectorLayer::updateFeature cannot add geometry to feature
with no existing geometry

Fixes #17678
2018-01-04 12:27:38 +11:00
Nyall Dawson
5ecb5603df Fix QgsVectorLayer::updateFeature returns true when errors occur
Refs #17678
2018-01-04 12:27:38 +11:00
Nyall Dawson
c94d26a5d5 Doxygen++ 2018-01-04 12:27:38 +11:00
Nyall Dawson
7febd1e461 Fix pasting features to new layer doesn't paste fields
Fixes #17702
2018-01-04 08:10:52 +11:00
Denis Rouzaud
611ae9523e also use bool fieldIsoFormat in search widget wrapper 2018-01-03 15:38:10 -04:00
Denis Rouzaud
bdf744ee3f
Merge pull request #5960 from 3nids/fix16657
fix date/time widget for field with time zones
2018-01-03 13:22:52 -04:00
Borys Jurgiel
cef2db9ae3
Merge pull request #5904 from borysiasty/pyQgisVersion
Make QGIS 2.99 compatible with 3.0 plugins by introducing PyQGIS API version
2018-01-03 18:09:24 +01:00
Denis Rouzaud
69cfdc4fcf rename static variables
since they're not really default values
2018-01-03 12:21:17 -04:00
Denis Rouzaud
919cbec7b2 add a bool in config to determine if it uses Qt::ISODate for field format
also fixes the fact that the display format of QDateTimeEdit only accepts string formats, so in case of Qt::ISODate use a default date/time with zmne zone
2018-01-03 11:28:05 -04:00
Denis Rouzaud
a3588e023f fix search widget wrapper 2018-01-03 10:01:53 -04:00
Denis Rouzaud
1710dc0587 fix date/time widget for field with time zones
this adds a new format of date/time to use Qt::ISODate format
the issue is that QDate::fromString does not recognize the t letter for the timezone in format
this a hack since any field_format needs to be tested if it corresponds to QgsDateTimeFieldFormatter::DEFAULT_ISO_FORMAT and in such case replace by Qt::ISODate instead of a format string
2018-01-03 10:01:53 -04:00
Mathieu Pellerin
df547e1231
Don't crash the projection selection widget when world_map.shp fails to load (#5977)
* initiate mExpressionFieldBuffer in the constructor
2018-01-03 17:51:38 +07:00
Matthias Kuhn
6ed078c889
Merge pull request #5946 from DelazJ/nullMinMax
[needs-docs] Update min and max functions
2018-01-03 09:13:46 +01:00
Nyall Dawson
d047bc8dd5
Merge pull request #5957 from nyalldawson/wkb_handling
Fix some handling of wkb types which is broken for z/m type geometries
2018-01-03 16:59:51 +11:00
Harrissou Sant-anna
cdbb0df8d7 Add example with NULL value 2018-01-03 06:57:10 +01:00
Nyall Dawson
7cb8d1a9bf Fix position of Oracle entry in data source manager
Fixes #17755
2018-01-03 12:42:38 +10:00
Nyall Dawson
a4147b7a38 Fix invisble annotations are still rendered
Fixes #17763
2018-01-03 12:01:56 +10:00
Denis Rouzaud
230e91c44b [date time widget] do not use minimumDateTime for NULL values
fixes issue when setting min and max values for the widget
2018-01-02 20:41:24 -04:00
Nyall Dawson
21296982e1 Link metadata widget to canvas
So that child widgets which can take properties from canvas
can have full functionality
2018-01-03 11:06:46 +11:00
Nyall Dawson
433d6594de Fix stored spatial extent not showing in metadata tab 2018-01-03 11:06:46 +11:00
Nyall Dawson
e47b71457f Fix missing 'canvas extent' button in extent widget 2018-01-03 11:06:46 +11:00
Alexander Bruy
f9d6a991ce add Ukrainian translators 2018-01-02 12:45:43 +02:00
Denis Rouzaud
39b183fef4 remove include and forward declarations left-overs 2018-01-01 20:09:46 -04:00
Denis Rouzaud
7237dab6ec [QDateTimeEdit] use QLineEdit::addAction
instead of custom tool button
this seems to solve many issues :)
kudos to @nyalldawson for pointing to it
and a happy new year!
2018-01-01 20:09:46 -04:00
Denis Rouzaud
86feed4955 [QgsDateTimeEdit] use special value text to handle NULL values
the widget now uses a special value text to display NULL rather than painting a QLineEdit on top

a press on the spinbox buttons (non-calendar mode) is catch to set to current date to avoid starting at the minimum date
2018-01-01 20:09:46 -04:00
Denis Rouzaud
577c667413 [date widget] fix current date can't be picked
fix #16579
2018-01-01 20:09:46 -04:00
Martin Dobias
6508543f5f [3d] Fix tessellator crash with nearly collinear points (fixes #17745) 2018-01-01 22:28:40 +01:00
Martin Dobias
32504c48d7 [3d] Fix tilting of camera in docked 3D view with Shift (fixes #17337)
This reverts a6b0c44

Map canvas was stealing keyboard focus from the docked 3D view and the key presses
of modifiers were not passed to the 3D view.
2018-01-01 22:28:23 +01:00
luzpaz
626781a63a Typo fixes
+ added word to spelling.dat
2017-12-31 09:14:09 +11:00
Martin Dobias
9f3b3e50d5 [3d] Allow Shift+up/down/left/right keys to rotate/tilt camera
Just like user can drag map with mouse or move it with up/down/left/right keys,
for consistency with Shift+drag we have now also support for arrow keys.
2017-12-30 01:25:28 +01:00
Mathieu Pellerin
63c1925618
[georeferencer] improve ui layout, use qgsfilewidget 2017-12-29 09:23:36 +07:00
Ismail Sunni
f7829dbd0d Put X field above Y field in Delimited Text dialog. Fix #11746. 2017-12-29 06:51:07 +11:00
Borys Jurgiel
4783af674e
Merge pull request #5952 from borysiasty/plugin-notification
[Plugin installer][needs-docs] Display notifications as an icon rather than a text
2017-12-28 09:37:59 +01:00
Borys Jurgiel
671b772270 [Plugin manager] New plugin notification icon slightly adjusted 2017-12-28 09:19:21 +01:00
Matthias Kuhn
a650a03f19
Merge pull request #5853 from m-kuhn/valueRelationReadonly
Value relation widget: respect readonly state
2017-12-28 08:10:44 +01:00
Matthias Kuhn
375daf1879 PEP8 2017-12-28 07:54:07 +01:00
Harrissou Sant-anna
99abc8dfb5 Revert QVERIFY change 2017-12-28 12:12:55 +11:00
Nyall Dawson
d1e83b5453 Fix some handling of wkb types which is broken for z/m type geometries 2017-12-28 09:07:36 +10:00
Matthias Kuhn
90acb5690e Make ValueRelation test more stable 2017-12-28 00:02:16 +01:00
Borys Jurgiel
e69fa14455 [Plugin installer] Desaturate toolbar icons 2017-12-27 22:51:08 +01:00
Matthias Kuhn
46a74a090a Add test for enabled state of relation value widget 2017-12-27 22:04:40 +01:00
Matthias Kuhn
167fbf6d53 Value relation widget respects read only mode
Fix #17592
2017-12-27 22:04:40 +01:00
Matthias Kuhn
0c292a0207 Add some more min/max tests 2017-12-27 21:46:11 +01:00
Matthias Kuhn
2e1b9ae0e4 Improve test output 2017-12-27 21:43:20 +01:00
Matthias Kuhn
272a02dfdb Min/max exp functions have custom Null handler 2017-12-27 21:43:20 +01:00
Harrissou Sant-anna
c063710352 Add more tests 2017-12-27 21:43:20 +01:00
Harrissou Sant-anna
49a3af0034 Adding tests to min and max functions 2017-12-27 21:43:20 +01:00
Harrissou Sant-anna
97caa005d9 [needs-docs] Update min and max functions
In case of a null value, these functions will not always return null
2017-12-27 21:43:20 +01:00
Matthias Kuhn
060a36bf8f
Merge pull request #5955 from m-kuhn/noCacheEvalErrors
Expressions: do not cache results when there is an eval error
2017-12-27 21:19:41 +01:00
Matthias Kuhn
d01f94f7ef Avoid crash with represent_value exp function
represent_value would crash when it was called via evaluate without any context specified.
2017-12-27 20:40:41 +01:00