X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fcoreinfodlg.h;h=20add30a3a751ae2570eda3338d7cda51676400a;hb=8fe8accd73abf77ab21d2d1c1346d2bc5c4de2ff;hp=f9698aaeafe43661f118355d694929e354c973aa;hpb=52df0969e22249e6758714eec9e5afd7d4fe9b83;p=quassel.git diff --git a/src/qtui/coreinfodlg.h b/src/qtui/coreinfodlg.h index f9698aae..20add30a 100644 --- a/src/qtui/coreinfodlg.h +++ b/src/qtui/coreinfodlg.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef COREINFODLG_H @@ -24,20 +24,30 @@ #include "ui_coreinfodlg.h" #include -#include "clientcoreinfo.h"; +#include "clientcoreinfo.h" -class CoreInfoDlg : public QDialog { - Q_OBJECT +class CoreInfoDlg : public QDialog +{ + Q_OBJECT public: - CoreInfoDlg(QWidget *parent = 0); + CoreInfoDlg(QWidget *parent = 0); public slots: - void coreInfoAvailable(); + void coreInfoAvailable(); + +protected: + virtual void timerEvent(QTimerEvent *) { updateUptime(); } + +private slots: + void on_closeButton_clicked() { reject(); } + void updateUptime(); + void disconnectClicked(int peerId); private: - Ui::CoreInfoDlg ui; - ClientCoreInfo _coreInfo; + Ui::CoreInfoDlg ui; + ClientCoreInfo _coreInfo; }; + #endif //COREINFODLG_H