/***************************************************************************
- * 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 *
#include "dccconfig.h"
#include "settingspage.h"
+
#include "ui_dccsettingspage.h"
/**
*
* @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:
/**
*
* @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:
/**
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
};