X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fdccsettingspage.h;h=5a67e31f4ceca171fbb0e5c407b2008e49133e4d;hb=1a5c1814a0c52f6f35e65c7033b2f896bf1188e3;hp=f590a5c075e5fd54adf62c43d9504de0aa372474;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf;p=quassel.git diff --git a/src/qtui/settingspages/dccsettingspage.h b/src/qtui/settingspages/dccsettingspage.h index f590a5c0..5a67e31f 100644 --- a/src/qtui/settingspages/dccsettingspage.h +++ b/src/qtui/settingspages/dccsettingspage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2020 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 };