#include <Libs/Widgets/ctkSettingsDialog.h>
|
virtual bool | event (QEvent *) |
|
|
QScopedPointer< ctkSettingsDialogPrivate > | d_ptr |
|
Definition at line 37 of file ctkSettingsDialog.h.
◆ Superclass
◆ ctkSettingsDialog()
ctkSettingsDialog::ctkSettingsDialog |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ ~ctkSettingsDialog()
virtual ctkSettingsDialog::~ctkSettingsDialog |
( |
| ) |
|
|
virtual |
◆ accept
virtual void ctkSettingsDialog::accept |
( |
| ) |
|
|
virtualslot |
◆ addPanel() [1/3]
This convenience overload allows the caller to specify the panel name that will be used in the panels list, as well as an icon for the panel.
◆ addPanel() [2/3]
This convenience overload allows the caller to specify the panel name that will be used in the panels list.
◆ addPanel() [3/3]
Add settings panel to the dialog.
This adds the specified settings panel to the dialog. The panel's QWidget::windowTitle property is used as the panel name as shown in the panels list.
◆ adjustTreeWidgetToContents
void ctkSettingsDialog::adjustTreeWidgetToContents |
( |
| ) |
|
|
slot |
Resize the left panel based on the panels titles.
◆ applySettings
void ctkSettingsDialog::applySettings |
( |
| ) |
|
|
slot |
◆ currentPanel()
◆ event()
virtual bool ctkSettingsDialog::event |
( |
QEvent * |
| ) |
|
|
protectedvirtual |
◆ isRestartRequired()
bool ctkSettingsDialog::isRestartRequired |
( |
| ) |
const |
◆ onCurrentItemChanged
void ctkSettingsDialog::onCurrentItemChanged |
( |
QTreeWidgetItem * |
currentItem, |
|
|
QTreeWidgetItem * |
previous |
|
) |
| |
|
protectedslot |
◆ onDialogButtonClicked
void ctkSettingsDialog::onDialogButtonClicked |
( |
QAbstractButton * |
button | ) |
|
|
protectedslot |
◆ onSettingChanged
void ctkSettingsDialog::onSettingChanged |
( |
const QString & |
key, |
|
|
const QVariant & |
newVal |
|
) |
| |
|
protectedslot |
◆ panel()
◆ reject
virtual void ctkSettingsDialog::reject |
( |
| ) |
|
|
virtualslot |
◆ reloadSettings
void ctkSettingsDialog::reloadSettings |
( |
| ) |
|
|
slot |
Reload settings for all registered panels.
This reloads the settings for all panels, effectively throwing out any values in the UI or the panels' caches and reverting to the values in the associated QSettings. You should call this if you have made changes to the QSettings that were not made through ctkSettingsPanel.
◆ resetButton()
bool ctkSettingsDialog::resetButton |
( |
| ) |
const |
◆ resetSettings
void ctkSettingsDialog::resetSettings |
( |
| ) |
|
|
slot |
◆ restartRequested
void ctkSettingsDialog::restartRequested |
( |
| ) |
|
|
signal |
Signal fired when the user accepts to restart the application because some OptionRestartRequired settings have changed.
- See also
- isrestartRequired
◆ restoreDefaultSettings
void ctkSettingsDialog::restoreDefaultSettings |
( |
| ) |
|
|
slot |
◆ setCurrentPanel [1/2]
void ctkSettingsDialog::setCurrentPanel |
( |
const QString & |
label | ) |
|
|
slot |
◆ setCurrentPanel [2/2]
◆ setResetButton()
void ctkSettingsDialog::setResetButton |
( |
bool |
show | ) |
|
◆ setSettings()
void ctkSettingsDialog::setSettings |
( |
QSettings * |
settings | ) |
|
◆ settingChanged
void ctkSettingsDialog::settingChanged |
( |
const QString & |
key, |
|
|
const QVariant & |
value |
|
) |
| |
|
signal |
◆ settings()
QSettings* ctkSettingsDialog::settings |
( |
| ) |
const |
◆ d_ptr
QScopedPointer<ctkSettingsDialogPrivate> ctkSettingsDialog::d_ptr |
|
protected |
◆ currentPanel
◆ resetButton
bool ctkSettingsDialog::resetButton |
|
readwrite |
This property controls whether the reset button is visible in the button box or not. The Cancel button is a reset button and closes the dialog at the same time.
Definition at line 1 of file ctkSettingsDialog.h.
◆ restartRequired
bool ctkSettingsDialog::restartRequired |
|
read |
Specifies if a restart required to fully apply changes.
This property is true
if at least one OptionRestartRequired setting is changed. It doesn't imply that the user accepted to restart the application.
Definition at line 1 of file ctkSettingsDialog.h.
◆ settings
QSettings* ctkSettingsDialog::settings |
|
readwrite |
The documentation for this class was generated from the following file: