94 Commits

Author SHA1 Message Date
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Denis Rouzaud
dcd3c32458 fix sipify 2021-01-12 13:02:56 +01:00
Ivan Ivanov
b1dad1d3ef Added SIP_DEPRECATED and added forgotten \since docs 2020-12-30 04:46:51 +02:00
Ivan Ivanov
51cd712c76 Add relation widget registry 2020-12-30 04:46:51 +02:00
Nyall Dawson
5565a6858d Some doxygen grammar fixes 2020-10-21 09:32:15 +10:00
Nyall Dawson
d3adc10ec3 Move some todos so they don't sit between member doxygen and declaration
Sipify doesn't handle this, and drops off the docstring from the python method
2020-10-21 09:32:15 +10:00
Nyall Dawson
746ee315bd Fix boolean literal presentation in dox/PyQGIS docs 2020-10-16 16:03:26 +10:00
Matthias Kuhn
38ec62e89d
Merge pull request #38663 from signedav/relation-editor-title
Label (title) of relation editor widget instances
2020-09-10 06:48:05 +02:00
Matthias Kuhn
a853f2643d
Merge pull request #38659 from suricactus/relref_filter_expr
Add support for filter expressions in relation reference widget
2020-09-10 06:46:44 +02:00
signedav
a209536295 configurable label (title) of relation editor widget instances
resolves #37675
2020-09-09 12:13:51 +02:00
Ivan Ivanov
c4b2a748e2 Add support for filter expressions in relation reference widget 2020-09-09 10:28:38 +03:00
signedav
a89765e9ce default flag on search widget for relation reference so it's selected when the value changes for the first time. reported here #37843 2020-09-09 11:02:22 +10:00
signedav
b5af453b8e improved texts for warning message and docs 2020-08-18 16:45:06 +02:00
signedav
458d39c7e5 setting forceSuppressFormPopup only when true in the widget (not unset it when false) and use more specific function descriptions 2020-08-14 07:08:49 +02:00
signedav
f0a390de39 correct set of forceSuppressPopup state
renamed cardinality to nmRelationId since it's not a cardinality - it's the id of the relation connected through the many-to-many cardinality in this relation editor widget
2020-08-13 11:48:23 +02:00
signedav
1fadb92939 move the cardinality and the forceSuppressFormPopup to the widget configuration - stored in a QgsAttributeEditorElement 2020-08-10 07:25:00 +02:00
Denis Rouzaud
256044cf2c rephrase shown to visible 2020-07-13 08:48:31 +02:00
Denis Rouzaud
ccb3b8ec80 make more buttons configurable in relation editor
fixes #37718
2020-07-13 08:48:31 +02:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Nyall Dawson
cedd73ee4d More list formatting fixes 2020-06-13 16:49:14 +10:00
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