VoiceAssistant
main
Resource-efficient, customizable voice assistant
|
#include <settingswidget.h>
Public Member Functions | |
SettingsWidget (QWidget *parent=nullptr) | |
SettingsWidget constructor. | |
~SettingsWidget ()=default | |
SettingsWidget destructor. | |
virtual void | apply ()=0 |
apply applies the changes made in the settings widget. | |
virtual void | finish ()=0 |
finish writes the settings to storage. | |
QString | displayName () const |
displayName returns the display name of the settings widget. | |
QString | displayCategory () const |
displayCategory returns the display category of the settings widget. | |
const QIcon & | categoryIcon () const |
categoryIcon returns the icon of the settings widget category. | |
const QStringList & | keyWords () |
keyWords returns the keywords associated with the settings widget. | |
virtual void | setSettings (QSettings *settings) final |
setSettings sets the QSettings object to be used by the settings widget. | |
Protected Member Functions | |
void | setDisplayName (const QString &displayName) |
setDisplayName sets the display name of the settings widget. | |
void | setDisplayCategory (const QString &displayCategory) |
setDisplayCategory sets the display category of the settings widget. | |
void | setCategoryIcon (const QIcon &categoryIcon) |
setCategoryIcon sets the icon of the settings widget category. | |
QSettings * | settings () |
settings returns the QSettings object used by the settings widget. | |
Definition at line 15 of file settingswidget.h.
|
inlineexplicit |
SettingsWidget constructor.
parent | The parent widget. |
Definition at line 23 of file settingswidget.h.
|
default |
SettingsWidget destructor.
The destructor is responsible for cleaning up the object.
|
pure virtual |
apply applies the changes made in the settings widget.
This function is called when the apply button is pressed in the settings widget. Subclasses should implement this function to apply the changes made by the user.
|
inline |
categoryIcon returns the icon of the settings widget category.
This function returns the icon of the settings widget category, which is displayed in the list.
Definition at line 71 of file settingswidget.h.
|
inline |
displayCategory returns the display category of the settings widget.
This function returns the display category of the settings widget, which is used as the name in the list.
Definition at line 63 of file settingswidget.h.
|
inline |
displayName returns the display name of the settings widget.
This function returns the display name of the settings widget, which is used as the tab name.
Definition at line 55 of file settingswidget.h.
|
pure virtual |
finish writes the settings to storage.
This function is called when the settings are about to be saved. Subclasses should implement this function to write the settings to the appropriate storage.
|
inline |
keyWords returns the keywords associated with the settings widget.
This function returns the keywords associated with the settings widget. The keywords are used for searching within the settings.
Definition at line 80 of file settingswidget.h.
|
inlineprotected |
setCategoryIcon sets the icon of the settings widget category.
categoryIcon | The category icon. |
This function sets the icon of the settings widget category. The category icon is displayed in the list for the settings widget.
Definition at line 135 of file settingswidget.h.
|
inlineprotected |
setDisplayCategory sets the display category of the settings widget.
displayCategory | The display category. |
This function sets the display category of the settings widget. The display category is used as the name in the list for the settings widget.
Definition at line 126 of file settingswidget.h.
|
inlineprotected |
setDisplayName sets the display name of the settings widget.
displayName | The display name. |
This function sets the display name of the settings widget. The display name is used as the tab name for the settings widget.
Definition at line 117 of file settingswidget.h.
|
inlinefinalvirtual |
setSettings sets the QSettings object to be used by the settings widget.
settings | The QSettings object. |
This function sets the QSettings object to be used by the settings widget. The settings object is used for storing and retrieving the settings values.
Definition at line 107 of file settingswidget.h.
|
inlineprotected |
settings returns the QSettings object used by the settings widget.
This function returns the QSettings object used by the settings widget. The settings object is used for storing and retrieving the settings values.
Definition at line 144 of file settingswidget.h.