A minimalistic, easy to embed, format settings widget.
More...
A minimalistic, easy to embed, format settings widget.
◆ addScheme
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)
◆ cancel
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
◆ isAutonomous()
bool QFormatConfig::isAutonomous |
( |
| ) |
const |
- Returns
- Whether the format config widget is in "autonomous" mode
◆ removeScheme
Remove a scheme from the config widget.
- Note
- No attempt is made to commit unsaved changes
◆ restore
void QFormatConfig::restore |
( |
| ) |
|
|
slot |
Restore default values for all subcontrols.
- Note
- The widgets are changed but these changes are NOT applied.
◆ schemes()
- Returns
- the list of format schemes this config widget "manages"
◆ setAutonomous
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.
◆ setCurrentScheme
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: