The Settings class is a wrapper around QSettings that provides a more convenient interface for accessing and modifying application settings.
More...
#include <settings.h>
|
| Settings (QObject *parent=nullptr) |
|
QString | defaultLanguage () const |
| Returns the default language for the application.
|
|
QString | language () const |
| Returns the current language for the application.
|
|
void | setLanguage (const QString &language) |
| Sets the current language for the application.
|
|
qreal | defaultWindowOpacity () const |
| Returns the default window opacity for the application.
|
|
qreal | windowOpacity () const |
| Returns the current window opacity for the application.
|
|
void | setWindowOpacity (const qreal opacity) |
| Sets the current window opacity for the application.
|
|
bool | defaultFpsVisible () const |
| Returns the default FPS visibility for the application.
|
|
bool | isFpsVisible () const |
| Returns the current FPS visibility for the application.
|
|
void | setFpsVisible (const bool fps_visible) |
| Sets the current FPS visibility for the application.
|
|
Q_INVOKABLE void | resetShortcutsToDefaults () |
| Resets all shortcuts to their default values.
|
|
QString | defaultQuitShortcut () const |
| Returns the default quit shortcut for the application.
|
|
QString | quitShortcut () const |
| Returns the current quit shortcut for the application.
|
|
void | setQuitShortcut (const QString &shortcut) |
| Sets the current quit shortcut for the application.
|
|
QString | defaultOptionsShortcut () const |
| Returns the default options shortcut for the application.
|
|
QString | optionsShortcut () const |
| Returns the current options shortcut for the application.
|
|
void | setOptionsShortcut (const QString &shortcut) |
| Sets the current options shortcut for the application.
|
|
QString | defaultFullScreenShortcut () const |
| Returns the default full screen shortcut for the application.
|
|
QString | fullScreenShortcut () const |
| Returns the current full screen shortcut for the application.
|
|
void | setFullScreenShortcut (const QString &shortcut) |
| Sets the current full screen shortcut for the application.
|
|
The Settings class is a wrapper around QSettings that provides a more convenient interface for accessing and modifying application settings.
◆ Settings()
llm_chat::Settings::Settings |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ defaultFpsVisible()
bool llm_chat::Settings::defaultFpsVisible |
( |
| ) |
const |
|
nodiscard |
Returns the default FPS visibility for the application.
- Returns
- The default FPS visibility.
◆ defaultFullScreenShortcut()
QString llm_chat::Settings::defaultFullScreenShortcut |
( |
| ) |
const |
|
nodiscard |
Returns the default full screen shortcut for the application.
- Returns
- The default full screen shortcut.
◆ defaultLanguage()
QString llm_chat::Settings::defaultLanguage |
( |
| ) |
const |
|
nodiscard |
Returns the default language for the application.
- Returns
- The default language.
◆ defaultOptionsShortcut()
QString llm_chat::Settings::defaultOptionsShortcut |
( |
| ) |
const |
|
nodiscard |
Returns the default options shortcut for the application.
- Returns
- The default options shortcut.
◆ defaultQuitShortcut()
QString llm_chat::Settings::defaultQuitShortcut |
( |
| ) |
const |
|
nodiscard |
Returns the default quit shortcut for the application.
- Returns
- The default quit shortcut.
◆ defaultWindowOpacity()
qreal llm_chat::Settings::defaultWindowOpacity |
( |
| ) |
const |
|
nodiscard |
Returns the default window opacity for the application.
- Returns
- The default window opacity.
◆ fpsVisibleChanged
void llm_chat::Settings::fpsVisibleChanged |
( |
| ) |
|
|
signal |
Emitted when the FPS visibility is changed.
◆ fullScreenShortcut()
QString llm_chat::Settings::fullScreenShortcut |
( |
| ) |
const |
|
nodiscard |
Returns the current full screen shortcut for the application.
- Returns
- The current full screen shortcut.
◆ fullScreenShortcutChanged
void llm_chat::Settings::fullScreenShortcutChanged |
( |
| ) |
|
|
signal |
Emitted when the full screen shortcut is changed.
◆ isFpsVisible()
bool llm_chat::Settings::isFpsVisible |
( |
| ) |
const |
|
nodiscard |
Returns the current FPS visibility for the application.
- Returns
- The current FPS visibility.
◆ language()
QString llm_chat::Settings::language |
( |
| ) |
const |
|
nodiscard |
Returns the current language for the application.
- Returns
- The current language.
◆ languageChanged
void llm_chat::Settings::languageChanged |
( |
| ) |
|
|
signal |
Emitted when the language is changed.
◆ optionsShortcut()
QString llm_chat::Settings::optionsShortcut |
( |
| ) |
const |
|
nodiscard |
Returns the current options shortcut for the application.
- Returns
- The current options shortcut.
◆ optionsShortcutChanged
void llm_chat::Settings::optionsShortcutChanged |
( |
| ) |
|
|
signal |
Emitted when the options shortcut is changed.
◆ quitShortcut()
QString llm_chat::Settings::quitShortcut |
( |
| ) |
const |
|
nodiscard |
Returns the current quit shortcut for the application.
- Returns
- The current quit shortcut.
◆ quitShortcutChanged
void llm_chat::Settings::quitShortcutChanged |
( |
| ) |
|
|
signal |
Emitted when the quit shortcut is changed.
◆ resetShortcutsToDefaults()
void llm_chat::Settings::resetShortcutsToDefaults |
( |
| ) |
|
Resets all shortcuts to their default values.
◆ setFpsVisible()
void llm_chat::Settings::setFpsVisible |
( |
const bool | fps_visible | ) |
|
Sets the current FPS visibility for the application.
- Parameters
-
fps_visible | The new FPS visibility. |
◆ setFullScreenShortcut()
void llm_chat::Settings::setFullScreenShortcut |
( |
const QString & | shortcut | ) |
|
Sets the current full screen shortcut for the application.
- Parameters
-
shortcut | The new full screen shortcut. |
◆ setLanguage()
void llm_chat::Settings::setLanguage |
( |
const QString & | language | ) |
|
Sets the current language for the application.
- Parameters
-
language | The new language. |
◆ setOptionsShortcut()
void llm_chat::Settings::setOptionsShortcut |
( |
const QString & | shortcut | ) |
|
Sets the current options shortcut for the application.
- Parameters
-
shortcut | The new options shortcut. |
◆ setQuitShortcut()
void llm_chat::Settings::setQuitShortcut |
( |
const QString & | shortcut | ) |
|
Sets the current quit shortcut for the application.
- Parameters
-
shortcut | The new quit shortcut. |
◆ setWindowOpacity()
void llm_chat::Settings::setWindowOpacity |
( |
const qreal | opacity | ) |
|
Sets the current window opacity for the application.
- Parameters
-
opacity | The new window opacity. |
◆ windowOpacity()
qreal llm_chat::Settings::windowOpacity |
( |
| ) |
const |
|
nodiscard |
Returns the current window opacity for the application.
- Returns
- The current window opacity.
◆ windowOpacityChanged
void llm_chat::Settings::windowOpacityChanged |
( |
| ) |
|
|
signal |
Emitted when the window opacity is changed.
◆ fpsVisible
bool llm_chat::Settings::fpsVisible |
|
readwrite |
◆ fullScreenShortcut
QString llm_chat::Settings::fullScreenShortcut |
|
read |
◆ language
QString llm_chat::Settings::language |
|
readwrite |
◆ optionsShortcut
QString llm_chat::Settings::optionsShortcut |
|
read |
◆ quitShortcut
QString llm_chat::Settings::quitShortcut |
|
readwrite |
◆ windowOpacity
qreal llm_chat::Settings::windowOpacity |
|
readwrite |
The documentation for this class was generated from the following files: