A minimalistic, easy to embed, format settings widget.
More...
A minimalistic, easy to embed, format settings widget.
void QFormatConfig::addScheme |
( |
const QString & |
name, |
|
|
QFormatScheme * |
scheme |
|
) |
| |
|
slot |
Add a format scheme to the config widget.
Users will be able to edit that scheme (switching among schemes using a combobox if several schemes are added to the widget)
void QFormatConfig::cancel |
( |
| ) |
|
|
slot |
Reset the subcontrols to reflect the data of the format scheme being edited.
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
bool QFormatConfig::isAutonomous |
( |
| ) |
const |
- Returns
- Whether the format config widget is in "autonomous" mode
Remove a scheme from the config widget.
- Note
- No attempt is made to commit unsaved changes
void QFormatConfig::restore |
( |
| ) |
|
|
slot |
Restore default values for all subcontrols.
- Note
- The widgets are changed but these changes are NOT applied.
- Returns
- the list of format schemes this config widget "manages"
void QFormatConfig::setAutonomous |
( |
bool |
y | ) |
|
|
slot |
Turn on "autonomous" mode.
When the format config widget is autonomous it will automatically check for changes upon hide event and ask the user whether he wishes to commit them.
Enforce the currently edited scheme.
- Note
- It is possible to pass a scheme not previously added to the widget, but it really isn't recommended.
The documentation for this class was generated from the following files: