X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=1495b3de0756952e543d9e0cc00a1402d0c13add;hp=76bd423c1cf5216fb265260907c70df5d0775fea;hb=13eefb3ca78e1e144fb31a52faaf56d9e7c3a691;hpb=8b896450a5fc56a2bde37b44e81dc5af6c338be1 diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index 76bd423c..1495b3de 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -21,7 +21,12 @@ #ifndef MAINWIN_H_ #define MAINWIN_H_ -#include +#ifdef HAVE_KDE +# include +#else +# include +#endif + #include #include "qtui.h" @@ -40,8 +45,15 @@ class SystemTrayIcon; class QMenu; class QLabel; +class KHelpMenu; + //!\brief The main window of Quassel's QtUi. -class MainWin : public QMainWindow { +class MainWin +#ifdef HAVE_KDE +: public KMainWindow { +#else +: public QMainWindow { +#endif Q_OBJECT public: @@ -83,6 +95,10 @@ class MainWin : public QMainWindow { void showCoreConnectionDlg(bool autoConnect = false); void showCoreInfoDlg(); void showSettingsDlg(); + void showNotificationsDlg(); +#ifdef HAVE_KDE + void showShortcutsDlg(); +#endif void on_actionEditNetworks_triggered(); void on_actionManageViews_triggered(); void on_actionLockDockPositions_toggled(bool lock); @@ -105,6 +121,9 @@ class MainWin : public QMainWindow { void disconnectFromCore(); private: +#ifdef HAVE_KDE + KHelpMenu *_kHelpMenu; +#endif QMenu *systrayMenu; QLabel *coreLagLabel;