74 Commits

Author SHA1 Message Date
Julien Cabieces
1c9e032beb Fixes crash when displaying relation editor 2020-03-17 18:03:23 +01:00
Alessandro Pasotti
195efa42a1 Final touches to the parent form API 2020-03-04 08:52:52 +01:00
Alessandro Pasotti
9c337e9ec2 [feature] Relation wdgt: add checkbox to hide save child edits button
This is very useful for embedded forms.

Funded by: ARPA Piemonte
2020-02-28 13:20:03 +01:00
Nyall Dawson
36f0952452 Mark some internal methods as private 2020-02-24 17:23:41 +10:00
Nyall Dawson
983a3d8655 Fix duplicate signals emitted by QgsDateTimeEdit when changed 2020-02-24 17:23:41 +10:00
Nyall Dawson
1facaf5149 Allow null string to be customised for QgsDateTimeEdit
E.g. for processing use this needs to be "Not specified"
2020-02-24 17:23:41 +10:00
Nyall Dawson
6c94bf493d Add QgsDateTimeEdit subclasses for specific date and time widgets
Adds QgsDateEdit and QgsTimeEdit subclasses. (All the heavy lifting
with these is done by Qt itself, hence no extra unit tests!)
2020-02-24 17:23:41 +10:00
Stephen Knox
9af0c224b7
Merge branch 'master' into pg_json 2019-12-23 22:21:11 +00:00
Alessandro Pasotti
4ad62aa6ff Move layerDependencies to formatter
... from the widget
2019-12-13 11:54:25 +01:00
Alessandro Pasotti
37c42c3665 Relation-reference widget: load dependencies
Same behavior of value-relation widget.

Funded by: ARPA Piemonte
2019-11-27 17:54:16 +01:00
Stephen Knox
9c9b5ca052 Fix sip and formatting issues 2019-11-23 22:57:09 +00:00
Stephen Knox
51c1289165
Merge branch 'master' into pg_json 2019-11-23 19:18:35 +00:00
Stephen Knox
b4769c57d6 Prevent saving invalid json 2019-11-22 00:07:57 +00:00
Alessandro Pasotti
64949dc227 Check vector layer widget broken dependencies 2019-10-30 14:41:34 +01:00
Denis Rouzaud
758d7cff4a run sipify to update deprecation annotations 2019-10-15 13:17:38 +02:00
David Signer
1df5213da6 if the lineEdit contains the Null Representation it should replace the text with the current date 2019-10-07 17:20:47 +02:00
Etienne Trimaille
3159d6f199 update docstrings in qgsdatetimeedit.h 2019-10-03 13:17:04 +10:00
Etienne Trimaille
d61fab7783 implement date() and time() in QgsDateTimeEdit to handle NULL values 2019-10-03 13:17:04 +10:00
Alessandro Pasotti
240bfb2a3f
Merge pull request #31871 from elpaso/bugfix-gh31635-spinbox-double-changed-event
Fix double event fired by QSpinBox in slow graduated
2019-09-20 09:04:34 +02:00
Alessandro Pasotti
60fb0cb47f Apply timer spinbox workaround to QgsDoubleSpinBox too
To prevent double changed event fired in case the slot
takes too long to execute.
2019-09-19 09:10:26 +02:00
Alessandro Pasotti
8192ed8cce Fix double event fired by QSpinBox in slow graduated
... renderer widget

Fixes #31635

For the record of the underlying issue:

https://lists.qt-project.org/pipermail/interest/2013-July/007936.html
https://forum.qt.io/topic/82181/qt-doublespin-box-value-changed-slot-has-called-twice
https://forum.qt.io/topic/96094/qspinbox-value-changed-slot-has-called-twice-on-mouse-click
https://www.qtcentre.org/threads/53709-slot-valueChanged(double)-of-doubleSpinBox-called-twice-if-breakpoint-is-set
2019-09-18 15:06:31 +02:00
Etienne Trimaille
3b95172362
update docstring about QgsDateTimeEdit about NULL values 2019-09-17 17:25:15 +02:00
Julien Cabieces
3abbc0f178 Digitize the geometry from the relation reference widget add button (#30905)
* [FEATURE] [needs-docs] Add the possibility to digitize the geometry
when creating a feature from the plus button on the relation reference widget
2019-09-06 08:28:59 +02:00
Denis Rouzaud
ee6f8c580c const correctness, fix deprecated methods,
qVariantListIsNull returns true for an empty list
2019-08-29 10:31:55 +02:00
Denis Rouzaud
93a82f883a use composite keys in relation reference widget wrapper 2019-08-29 08:17:00 +02:00
Denis Rouzaud
c8f16fc955 use composite keys in relation reference widget 2019-08-29 08:17:00 +02:00
Denis Rouzaud
81eb4eebff const correction 2019-08-26 16:32:40 +02:00
Denis Rouzaud
f578216919
modify editor widget wrappers to handle additional fields (#31270) 2019-08-26 08:53:37 +02:00
Alessandro Pasotti
2b14dacd51 Fix identify on map in relation reference widget
Fixes #22071 - Relation reference widget wrong feature when "on map identification"
2019-05-21 19:09:18 +02:00
Alessandro Pasotti
b06103f140 Added missing SIP files and headers
Also fixes context evaluation before html is updated
2019-03-23 17:24:02 +01:00
Alessandro Pasotti
b165258e6d [feature][needs-docs] HTML form widget
Shameless clone of QML widget, with some webview quirks.

Funded by ARPA Piemonte
2019-03-23 16:41:16 +01:00
Nyall Dawson
107b48a430 Add NULLPTR macro for use in doxygen comments
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)

Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
a7ca08784c Nullptr consistency in dox 2019-02-27 09:41:11 +10:00
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Nyall Dawson
384d310233 Minor improvements to PyQGIS returns for SIP_OUT params 2019-02-05 04:55:34 +11:00
Nyall Dawson
eafedeeb8b Sipify 2019-01-21 14:48:19 +11:00
Denis Rouzaud
166e952c33 run sipify 2018-12-19 08:04:27 -04:00
Denis Rouzaud
edfb7e1465 run sipify 2018-12-18 17:17:25 -04:00
Denis Rouzaud
95142cc19e use Exclude field by default for relation search widget wrapper
fix #20201
2018-10-25 16:38:22 -04:00
Alessandro Pasotti
d179635b92 [bugfix] Allow empty null representation in spinboxes
Fixes #18583 - Widget "Range": Representation for NULL value is NOT always displayed correctly
2018-09-18 12:54:17 +02:00
signedav
b3e4755e2e Enum Mode in QgsAttributeEditorContext
instead of QgsAttributeForm - because it's used on places not including QgsAttributeForm
now it's able to use @form_mode in expressions of containers and QML widgets
2018-09-11 12:14:20 +02:00
signedav
d80ad3d34f form_mode for qmlwidgetwrapper expression 2018-09-10 18:08:26 +02:00
signedav
a5fc39100a no case default and removed unused doc 2018-09-10 08:16:06 +02:00
signedav
21a772ff6c spelling american
initialization not initialisation
2018-09-06 13:24:30 +02:00
signedav
13089664e8 spelling and missing case in qgsquick 2018-09-06 13:02:01 +02:00
signedav
5f4acded15 some more fixes
Removed QmlExpression from api
On activation of template box, we overwrite the text in the GUI
The preview is loaded including expression values on start
Takes expression instead of currentText from ExpressionWidget - means it delivers fields in quotes
2018-09-06 07:57:17 +02:00
signedav
4504845311 moved QmlExpression back to header 2018-09-05 17:07:43 +02:00
signedav
76df5b022d docs and replacement of qmlexpression 2018-09-05 15:59:01 +02:00
signedav
ae3176fef7 docstrings and beautification 2018-09-05 11:01:33 +02:00
signedav
ccdd4df5ce expressions on qml widget 2018-09-05 11:01:33 +02:00