Previously the widget would always just use a generic hardcoded
list of field types. This isn't appropriate for all destination
providers, which may not support certain field types.
Add API so that an explicit list of supported destination
field types can be set for the widget, restricting the choices
available to users for destination fields.
This adds support for saving and loading SQL queries to a .sql text
file to the Execute SQL dialog and Update SQL dialogs.
Effectively, it ports this functionality from the DB Manager plugin
over to the core browser-based database connection facilities.
The UX has been designed to mimic the same functionality from
other standard parts of QGIS, eg the Processing Script Editor. Toolbar
actions are used accordingly, instead of the old text button approach
used in DB Manager.
Sponsored by City of Canning
Adds a toolbar to the Execute SQL window, with common actions
for cut/copy/paste/undo/redo/toggle find/clear
This matches the UI for the Execute SQL dialog to other similar
QGIS dialogs, eg the Processing script editor dialog
The typedef is only present in the .sip file, but without this
annotation SIP assumes it also exists in QGIS headers. This didn't
completely break the build, since we concatenate multiple SIP headers
into larger files, so the typedefs from one part "fixed" another. Run
sip-build without --concatenate to see the issue clearly.
This fix is currently sadly not fully effective due to a SIP bug:
https://github.com/Python-SIP/sip/issues/66
Emitted when either:
1. 2 seconds has elapsed since the last value change in the widget
(eg last key press or scroll wheel event)
2. or, immediately after the widget has lost focus after its value
was changed.
This signal can be used to respond semi-instantly to changes in
the spin box, without responding too quickly
while the user in the middle of setting the value.