QCodeEdit
2.2
|
A minimalistic, easy to embed, settings widget. More...
Signals | |
void | keyChanged (const QString &key, const QVariant &value) |
QEditConfig (QWidget *w=0) | |
bool | hasUnsavedChanges () const |
bool | applyImmediately () const |
QMap< QString, QVariant > | dumpKeys () const |
Fills a settings map from the state of the subcontrols. | |
void | retranslate () |
run-time translation entry point | |
void | apply () |
Apply changes. | |
void | cancel () |
Reset the subcontrols to reflect the current settings. More... | |
void | restore () |
Restore default values for all subcontrols. More... | |
void | loadKeys (const QMap< QString, QVariant > &keys) |
Fills the widget subcontrols from a settings map. More... | |
void | setApplyImmediately (bool y) |
Set whether user changes are immediately applied. | |
A minimalistic, easy to embed, settings widget.
bool QEditConfig::applyImmediately | ( | ) | const |
|
slot |
Reset the subcontrols to reflect the current settings.
The name can be a bit misleading at first, it has been chosen because it directly maps to the effect a "cancel" button would have on the widget
References QEditor::defaultCodec(), QEditor::defaultFlags(), QDocument::defaultLineEnding(), QDocument::font(), QDocument::showSpaces(), and QDocument::tabStop().
|
slot |
Fills the widget subcontrols from a settings map.
keys | a key/value map that can be obtained from QSettings |
References QDocument::setFont().
|
slot |
Restore default values for all subcontrols.