X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fdccsettingspage.h;h=8f907e9a58a5d082e4e3efb147038b657e72202e;hb=24c7de34254b5de4cf28045a6923a527e06f7290;hp=b5fabbc8c7d0bac2148f0393eab62552ff692baa;hpb=ef3e54f6daebeeaa8d6e105a98711cb1760a637d;p=quassel.git diff --git a/src/qtui/settingspages/dccsettingspage.h b/src/qtui/settingspages/dccsettingspage.h index b5fabbc8..8f907e9a 100644 --- a/src/qtui/settingspages/dccsettingspage.h +++ b/src/qtui/settingspages/dccsettingspage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -22,6 +22,7 @@ #include "dccconfig.h" #include "settingspage.h" + #include "ui_dccsettingspage.h" /** @@ -37,16 +38,16 @@ public: * * @param[in] parent QObject parent */ - DccSettingsPage(QWidget *parent = nullptr); + DccSettingsPage(QWidget* parent = nullptr); /// See base class docs bool hasDefaults() const override; public slots: // See base class docs - void save() override; - void load() override; - void defaults() override; + void save() final override; + void load() final override; + void defaults() final override; private: /** @@ -61,11 +62,11 @@ private: * * @param[in] config The client's config. Must be be valid or a nullptr. */ - void setClientConfig(DccConfig *config); + void setClientConfig(DccConfig* config); // See base class docs - QVariant loadAutoWidgetValue(const QString &widgetName) override; - void saveAutoWidgetValue(const QString &widgetName, const QVariant &value) override; + QVariant loadAutoWidgetValue(const QString& widgetName) override; + void saveAutoWidgetValue(const QString& widgetName, const QVariant& value) override; private slots: /** @@ -84,7 +85,7 @@ private slots: void onClientConfigChanged(); private: - Ui::DccSettingsPage ui; ///< The UI object - DccConfig *_clientConfig {nullptr}; ///< Pointer to the client's config (nullptr if not synchronized/available) - DccConfig _localConfig; ///< Local config reflecting the widget states + Ui::DccSettingsPage ui; ///< The UI object + DccConfig* _clientConfig{nullptr}; ///< Pointer to the client's config (nullptr if not synchronized/available) + DccConfig _localConfig; ///< Local config reflecting the widget states };