pqSettings extends QSettings to add support for following: More...
#include <pqSettings.h>
Inherits QSettings.
Signals | |
| void | modified () |
Public Member Functions | |
| void | saveState (const QMainWindow &window, const QString &key) |
| void | saveState (const QDialog &dialog, const QString &key) |
| void | restoreState (const QString &key, QMainWindow &window) |
| void | restoreState (const QString &key, QDialog &dialog) |
| void | alertSettingsModified () |
| Calling this method will cause the modified signal to be emitted. More... | |
| void | saveInQSettings (const char *key, vtkSMProperty *smproperty) |
| Save a property value to a given setting name. More... | |
| QString | backup (const QString &filename=QString()) |
| Creates a new backup file for the current settings. More... | |
| pqSettings (const QString &organization, const QString &application=QString(), QObject *parent=nullptr) | |
| Create a new instance of pqSettings. More... | |
| pqSettings (Scope scope, const QString &organization, const QString &application=QString(), QObject *parent=nullptr) | |
| Create a new instance of pqSettings. More... | |
| pqSettings (Format format, Scope scope, const QString &organization, const QString &application=QString(), QObject *parent=nullptr) | |
| Create a new instance of pqSettings. More... | |
| pqSettings (const QString &fileName, Format format, QObject *parent=nullptr) | |
| Create a new instance of pqSettings. More... | |
| pqSettings (QObject *parent=nullptr) | |
| Create a new instance of pqSettings. More... | |
| ~pqSettings () override | |
| Create a new instance of pqSettings. More... | |
pqSettings extends QSettings to add support for following:
Note that pqApplicationCore::settings() configure differents things about the settings files in used (name, site-settings path). This should be prefered over creating a new instance of pqSettings manually.
Definition at line 23 of file pqSettings.h.
| pqSettings::pqSettings | ( | const QString & | organization, |
| const QString & | application = QString(), |
||
| QObject * | parent = nullptr |
||
| ) |
Create a new instance of pqSettings.
Note that the differents arguments impact the actual file path/name used: be sure to be consistent or you will end up with different files.
If you want to access the standard ParaView application settings, please use pqApplicationCore::settings() that already ensure the configuration.
| pqSettings::pqSettings | ( | Scope | scope, |
| const QString & | organization, | ||
| const QString & | application = QString(), |
||
| QObject * | parent = nullptr |
||
| ) |
Create a new instance of pqSettings.
Note that the differents arguments impact the actual file path/name used: be sure to be consistent or you will end up with different files.
If you want to access the standard ParaView application settings, please use pqApplicationCore::settings() that already ensure the configuration.
| pqSettings::pqSettings | ( | Format | format, |
| Scope | scope, | ||
| const QString & | organization, | ||
| const QString & | application = QString(), |
||
| QObject * | parent = nullptr |
||
| ) |
Create a new instance of pqSettings.
Note that the differents arguments impact the actual file path/name used: be sure to be consistent or you will end up with different files.
If you want to access the standard ParaView application settings, please use pqApplicationCore::settings() that already ensure the configuration.
| pqSettings::pqSettings | ( | const QString & | fileName, |
| Format | format, | ||
| QObject * | parent = nullptr |
||
| ) |
Create a new instance of pqSettings.
Note that the differents arguments impact the actual file path/name used: be sure to be consistent or you will end up with different files.
If you want to access the standard ParaView application settings, please use pqApplicationCore::settings() that already ensure the configuration.
| pqSettings::pqSettings | ( | QObject * | parent = nullptr | ) |
Create a new instance of pqSettings.
Note that the differents arguments impact the actual file path/name used: be sure to be consistent or you will end up with different files.
If you want to access the standard ParaView application settings, please use pqApplicationCore::settings() that already ensure the configuration.
|
override |
Create a new instance of pqSettings.
Note that the differents arguments impact the actual file path/name used: be sure to be consistent or you will end up with different files.
If you want to access the standard ParaView application settings, please use pqApplicationCore::settings() that already ensure the configuration.
| void pqSettings::restoreState | ( | const QString & | key, |
| QMainWindow & | window | ||
| ) |
| void pqSettings::restoreState | ( | const QString & | key, |
| QDialog & | dialog | ||
| ) |
| void pqSettings::alertSettingsModified | ( | ) |
Calling this method will cause the modified signal to be emitted.
| void pqSettings::saveInQSettings | ( | const char * | key, |
| vtkSMProperty * | smproperty | ||
| ) |
Save a property value to a given setting name.
| QString pqSettings::backup | ( | const QString & | filename = QString() | ) |
Creates a new backup file for the current settings.
If filename is empty, then a backup file name will automatically be picked. On success returns the backup file name, on failure an empty string is returned.
|
signal |
1.8.13 on Tue Dec 9 2025