diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-02 12:56:50 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-02 12:56:50 -0400 |
| commit | ec3fb7b3509fb10a8a1392740e209509ae6c092c (patch) | |
| tree | d420da96940d91d90363bc6ab71c4759fa837ae1 /src/settings.h | |
| parent | 57bef2ab8da5354cc65c3ad0e2cd86d75e1e8b94 (diff) | |
removed duplicate useProxy()
use dedicated functions to set, get or remove settings, allows for logging
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/settings.h b/src/settings.h index ae29d788..403c2d71 100644 --- a/src/settings.h +++ b/src/settings.h @@ -68,9 +68,6 @@ public: void saveState(const QHeaderView* header); bool restoreState(QHeaderView* header) const; - void saveState(const QToolBar* toolbar); - bool restoreState(QToolBar* toolbar) const; - void saveState(const QSplitter* splitter); bool restoreState(QSplitter* splitter) const; @@ -258,8 +255,6 @@ public: std::optional<QString> getStyleName() const; void setStyleName(const QString& name); - std::optional<bool> getUseProxy() const; - std::optional<QVersionNumber> getVersion() const; bool getFirstStart() const; @@ -408,7 +403,7 @@ public: /** * @return true if the user configured the use of a network proxy */ - bool useProxy() const; + bool getUseProxy() const; void setUseProxy(bool b); /** @@ -419,7 +414,6 @@ public: EndorsementState endorsementState() const; void setEndorsementState(EndorsementState s); - void setEndorsementState(const QString& s); /** * @return true if the API counter should be hidden @@ -436,7 +430,8 @@ public: /** * @brief sets the new motd hash **/ - void setMotDHash(uint hash); + unsigned int getMotDHash() const; + void setMotDHash(unsigned int hash); /** * @return true if the user wants to have archives being parsed to show conflicts and contents @@ -445,11 +440,6 @@ public: void setArchiveParsing(bool b); /** - * @return hash of the last displayed message of the day - **/ - uint getMotDHash() const; - - /** * @return short code of the configured language (corresponding to the translation files) */ QString language(); |
