Commit
On behalf of Faunalia, sponsored by ENEL
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -379,7 +379,23 @@ static void qtgui_UpdatePyArgv(PyObject *argvlist, int argc, char **argv) | |
bool x11EventFilter ( XEvent * event ); | ||
%End | ||
|
||
public slots: | ||
|
||
/** Causes the application instance to emit the settingsChanged() signal. This should | ||
* be called whenever global, application-wide settings are altered to advise listeners | ||
* that they may need to update their state. | ||
* @see settingsChanged() | ||
* @note added in QGIS 3.0 | ||
*/ | ||
void emitSettingsChanged(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nyalldawson
Author
Collaborator
|
||
|
||
signals: | ||
//! @note not available in python bindings | ||
// void preNotify( QObject * receiver, QEvent * event, bool * done ); | ||
|
||
/** Emitted whenever any global, application-wide settings are changed. | ||
* @note added in QGIS 3.0 | ||
* @see emitSettingsChanged() | ||
*/ | ||
void settingsChanged(); | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,6 +397,11 @@ class QgsProject : QObject | |
//! Emitted when the home path of the project changes | ||
void homePathChanged(); | ||
|
||
/** Emitted whenever the expression variables stored in the project have been changed. | ||
* @note added in QGIS 3.0 | ||
*/ | ||
void variablesChanged(); | ||
|
||
public slots: | ||
|
||
/** | ||
|
@@ -408,6 +413,13 @@ class QgsProject : QObject | |
*/ | ||
void setDirty( bool b = true ); | ||
|
||
/** Causes the project to emit the variablesChanged() signal. This should | ||
* be called whenever expression variables related to the project are changed. | ||
* @see variablesChanged() | ||
* @note added in QGIS 3.0 | ||
*/ | ||
void emitVariablesChanged(); | ||
This comment has been minimized.
Sorry, something went wrong.
m-kuhn
Member
|
||
|
||
private: | ||
|
||
QgsProject(); // private 'cause it's a singleton | ||
|
@nyalldawson what exactly was this introduced for? Looking at the commit message, it's mostly for changed variables? That does not get very clear reading the doc string.
I wonder if we should have a
variablesChanged()
signal instead which is emitted from asetVariables
method, just like QgsProject does.