X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=4f3f750dbad39dd18ffb18740d896f150059fd9d;hb=6330f7fe3d19113cbf29944a9b6e8b503893d4a9;hp=bc4ba1ee29e8deb6fc47674e3ddcf6c48ec4618f;hpb=f8c55c528ed7e5e1fd0090b4bbd6ef30d9c0f251;p=quassel.git diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index bc4ba1ee..4f3f750d 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -31,8 +31,6 @@ # include #endif -#include - #include "qtui.h" #include "titlesetter.h" #include "uisettings.h" @@ -75,9 +73,11 @@ class MainWin void addBufferView(ClientBufferViewConfig *config); BufferView *allBuffersView() const; - BufferWidget *bufferWidget() const { return _bufferWidget; } + inline BufferWidget *bufferWidget() const { return _bufferWidget; } - inline SystemTray *systemTray() const; +#ifndef QT_NO_SYSTEMTRAYICON + inline SystemTray *systemTray() const { return _systemTray; } +#endif bool event(QEvent *event); @@ -90,7 +90,9 @@ class MainWin public slots: void showStatusBarMessage(const QString &message); +#ifndef QT_NO_SYSTEMTRAYICON void toggleMinimizedToTray(); +#endif //! Bring window to front and focus it void forceActivated(); @@ -189,9 +191,10 @@ class MainWin void updateIcon(); void enableMenus(); +#ifndef QT_NO_SYSTEMTRAYICON void hideToTray(); - SystemTray *_systemTray; +#endif QList _bufferViews; BufferWidget *_bufferWidget; @@ -218,8 +221,4 @@ class MainWin friend class QtUi; }; -SystemTray *MainWin::systemTray() const { - return _systemTray; -} - #endif