44878 Commits

Author SHA1 Message Date
Denis Rouzaud
42976df82e do not override QDateTimeEdit::dateTimeChanged
see de03186745 (diff-f135574df9edcdda660e1bc4320a053e)
2018-01-04 21:40:55 -04:00
Denis Rouzaud
2528639320 doxymentattion 2018-01-04 21:40:45 -04:00
Denis Rouzaud
d8cc285fd2 fix NULL constraint on date/time widget with allow NULL
the issue was that widget wrapper was using parent QDateTimeEdit::dateTimeChanged signal. It was connected both internally to QgsDateTimeEdit::changed and in the form to detect changes. When QgsAttributeForm was recreating the updated feature it was calling QgsDateTimeEdit::value() before changed() could update the value (i.e. setting mIsNull to false).

fix #17790
2018-01-04 20:38:51 -04:00
Nyall Dawson
df95536715 Fix build warnings 2018-01-05 09:36:57 +10:00
Martin Dobias
c9dba998ad [3d] Fix a crash when restoring a project with bad layer ref (fixes #17687) 2018-01-05 00:20:21 +01:00
Juergen E. Fischer
d6e43ef829 oracle provider: adapt to ab05bfb1 2018-01-04 23:28:21 +01:00
Juergen E. Fischer
e271b647d4 translation string updates (incl. better translatable date time widget
help)
2018-01-04 22:49:30 +01:00
Denis Rouzaud
227dc9cf76 use appropriate field type in date time edit widget wrapper 2018-01-04 13:54:45 -04:00
Matthias Kuhn
ab05bfb1bb Move QGISDEBUG definition to header
Because having it as a compiler flag means that when compiling a dependant application we need to have extra knowledge of this setting at compile time of the dependant application.

If this is not guaranteed (and the dependant application is compiled without QGISDEBUG while libqgis_core.so is compiled with QGISDEBUG) will result in different class definitions being found in header and library. For example for the optional QgsCoordinateTransform::mHasContext member. This in turn leads to crashes with funky traces and no chance to find out what's going on.
2018-01-04 18:36:22 +01:00
Juergen E. Fischer
c8cb68ae77 fix translation text 2018-01-04 16:53:56 +01:00
Mathieu Pellerin
d4447e256e
[ui] add consistent spacing in the symbol list widget (#5987) 2018-01-04 18:01:10 +07:00
Harrissou Sant-anna
d09f3f8b4a [needs-docs] Organize tab sequence in options dialog (#5964) 2018-01-04 16:21:15 +07:00
Nyall Dawson
66aaaadd67 Fix tracing still active when snapping is turned off
Otherwise tracing is disabled in the snapping toolbar, yet still
active on the canvas.
2018-01-04 19:29:36 +11:00
Harrissou Sant-anna
63ba4feab6 eplace Line by LineString 2018-01-04 16:14:28 +11:00
Harrissou Sant-anna
b01a752bff List more geometry types in New Memory Layer dialog
Fixes 17594
2018-01-04 16:14:28 +11:00
Harrissou Sant-anna
04ccd26d37 [needs-docs] Reorganize project properties tabs order (#5970) 2018-01-04 12:07:28 +07:00
Harrissou Sant-anna
7112624dd2 [needs-docs] Organize raster/vector properties tabs order (#5965) 2018-01-04 12:06:02 +07:00
Nyall Dawson
b904731259 Respect transform context in point locator 2018-01-04 15:04:42 +11:00
Nyall Dawson
8f15cdf680 Respect transform contexts when tracing 2018-01-04 15:04:42 +11:00
Mathieu Pellerin
13ad7608e8
fix an options dialog search crasher (#5978) 2018-01-04 10:48:42 +07:00
Nyall Dawson
d69f932c31 Reformat code 2018-01-04 12:27:38 +11:00
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