X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fidentitiessettingspage.h;h=4fc9c44da58bc356928dec64bffc233dc78f9fd3;hb=158443f71d48215eea8b47b836b61afd77654b78;hp=b6b990afbb9e8bd7a12930167118fe141c7e1ae1;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/qtui/settingspages/identitiessettingspage.h b/src/qtui/settingspages/identitiessettingspage.h index b6b990af..4fc9c44d 100644 --- a/src/qtui/settingspages/identitiessettingspage.h +++ b/src/qtui/settingspages/identitiessettingspage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef IDENTITIESSETTINGSPAGE_H -#define IDENTITIESSETTINGSPAGE_H +#pragma once #include "clientidentity.h" #include "settingspage.h" @@ -37,15 +36,15 @@ class IdentitiesSettingsPage : public SettingsPage Q_OBJECT public: - IdentitiesSettingsPage(QWidget *parent = 0); + IdentitiesSettingsPage(QWidget *parent = nullptr); - virtual inline bool needsCoreConnection() const { return true; } + inline bool needsCoreConnection() const override { return true; } - bool aboutToSave(); + bool aboutToSave() override; public slots: - void save(); - void load(); + void save() final override; + void load() final override; private slots: void coreConnectionStateChanged(bool); @@ -74,7 +73,7 @@ private: QList changedIdentities; // for setting the widget changed state QList deletedIdentities; - bool _editSsl; + bool _editSsl{false}; void insertIdentity(CertIdentity *identity); void removeIdentity(Identity *identity); @@ -99,7 +98,7 @@ class CreateIdentityDlg : public QDialog Q_OBJECT public: - CreateIdentityDlg(QAbstractItemModel *model, QWidget *parent = 0); + CreateIdentityDlg(QAbstractItemModel *model, QWidget *parent = nullptr); QString identityName() const; IdentityId duplicateId() const; @@ -117,7 +116,7 @@ class SaveIdentitiesDlg : public QDialog Q_OBJECT public: - SaveIdentitiesDlg(const QList &toCreate, const QList &toUpdate, const QList &toRemove, QWidget *parent = 0); + SaveIdentitiesDlg(const QList &toCreate, const QList &toUpdate, const QList &toRemove, QWidget *parent = nullptr); private slots: void clientEvent(); @@ -127,6 +126,3 @@ private: int numevents, rcvevents; }; - - -#endif