X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=7551419f994cf6636b8b44f2758e81c6e4fde3fc;hb=08bace4e9ecf08273f094c0c6aa8b3363d38ac3e;hp=444442668151ffc73268fa04a60c79b4225721d8;hpb=eaa1bd30bc088e5cae6d8a742d7aedb3d8ff1897;p=quassel.git diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index 44444266..7551419f 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.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 * @@ -85,6 +85,9 @@ public: void saveStateToSettings(UiSettings &); void restoreStateFromSettings(UiSettings &); + // We need to override this to add the show/hide menu bar option + virtual QMenu *createPopupMenu(); + public slots: void showStatusBarMessage(const QString &message); void hideCurrentBuffer(); @@ -123,6 +126,7 @@ private slots: void showNotificationsDlg(); void showIgnoreList(QString newRule = QString()); void showShortcutsDlg(); + void showPasswordChangeDlg(); void showNewTransferDlg(const ClientTransfer *transfer); void onFullScreenToggled(); @@ -164,12 +168,9 @@ private slots: void changeActiveBufferView(bool backwards); void changeActiveBufferView(int bufferViewId); - void showChangePasswordDialog(); - signals: void connectToCore(const QVariantMap &connInfo); void disconnectFromCore(); - void changePassword(QString newPassword); private: #ifdef HAVE_KDE @@ -222,5 +223,7 @@ private: QHash _jumpKeyMap; int _activeBufferViewIndex; + bool _aboutToQuit; //closeEvent can occur multiple times on OSX + friend class QtUi; };