- QgsSignalBlocker: RAII signal blocking class. Used for temporarily
blocking signals from a QObject for the lifetime of QgsSignalBlocker
object.
- easy shortcut "whileBlocking( QObject* )" function. Temporarily
blocks signals from a QObject while calling a single method from the
object.
Usage:
whileBlocking( checkBox )->setChecked( true );
whileBlocking( spinBox )->setValue( 50 );
No signals will be emitted when calling these methods.
based on Boojum's code from
http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
The expression used to generate default values for a field on the
postgres database are currently being printed on the feature form.
nextval('serial')
A new option in the properties allows evaluating the expression before
usage and will directly print the new value in the feature form.
23
Now labels and HTML boxes can contain relative URLs. If we don't have
a base URL, the project file will be used as a base URL (closes#7236).
Remove the exception for the labels where the images where not
loaded (unless in in PDF or image mode). It was because of a crash. Qt didn't
like having the HTML loading to be done synchronously during painting.
Fix a leak when rendering labels.
This commit sets the framework for allowing expression functions to
use named parameters. Ie, instead of:
clamp(1,2,3)
you can use:
clamp( min:=1, value:=2, max:=3)
This also allows arguments to be switched, eg:
clamp( value:=2, max:=3, min:=1)
Additionally, it allows for a more structured definition of function
parameters to handle optional arguments and default values for
parameters. These are currently being done using a hacky infinite
argument list.
I've utilised the postgres ':=' syntax for specifying named arguments
to avoid potential collisions which may arise with the equality test
if we re-used just the '=' operator alone.
Sponsored by North Road
When using the drag and drop designer, a user can specify over how many
columns the fields should be distributed.
A double click on an existing group will allow adapting the value.