QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A helper class for access to either a temporary QgsSettings object or the thread local object. More...
#include <qgssettingsproxy.h>
Public Member Functions | |
QgsSettingsProxy (QgsSettings *settings=nullptr) | |
Constructor for QgsSettingsProxy. | |
QgsSettings & | operator* () |
Returns a reference to the proxied QgsSettings object. | |
QgsSettings * | operator-> () |
Returns a pointer to the proxied QgsSettings object. | |
A helper class for access to either a temporary QgsSettings object or the thread local object.
Definition at line 34 of file qgssettingsproxy.h.
|
explicit |
Constructor for QgsSettingsProxy.
If settings is set, then this object will proxy calls to that settings object. Otherwise a temporary QgsSettings object will be created for the lifetime of the proxy.
Definition at line 17 of file qgssettingsproxy.cpp.
|
inline |
Returns a reference to the proxied QgsSettings object.
Definition at line 57 of file qgssettingsproxy.h.
|
inline |
Returns a pointer to the proxied QgsSettings object.
Definition at line 49 of file qgssettingsproxy.h.