X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fidentitiessettingspage.h;h=3674c345ac88541246108e1270b0b4ff2f5711cd;hp=4ae1e6d8874c770fe3d5c01870c194cc61adedb9;hb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24;hpb=9fc57dc2c000e80fb8bd746a090e2e8210e1278e diff --git a/src/qtui/settingspages/identitiessettingspage.h b/src/qtui/settingspages/identitiessettingspage.h index 4ae1e6d8..3674c345 100644 --- a/src/qtui/settingspages/identitiessettingspage.h +++ b/src/qtui/settingspages/identitiessettingspage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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); @@ -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