# include <KShortcutsDialog>
# include <KStatusBar>
# include <KToolBar>
+# include <KWindowSystem>
#endif
#ifdef Q_WS_X11
# include "knotificationbackend.h"
#endif /* HAVE_KDE */
+#ifdef HAVE_INDICATEQT
+ #include "indicatornotificationbackend.h"
+#endif
+
#include "settingspages/aliasessettingspage.h"
#include "settingspages/appearancesettingspage.h"
#include "settingspages/backlogsettingspage.h"
QtUi::registerNotificationBackend(new KNotificationBackend(this));
#endif /* HAVE_KDE */
+#ifdef HAVE_INDICATEQT
+ QtUi::registerNotificationBackend(new IndicatorNotificationBackend(this));
+#endif
+
connect(bufferWidget(), SIGNAL(currentChanged(BufferId)), SLOT(currentBufferChanged(BufferId)));
setDisconnectedState(); // Disable menus and stuff
}
void MainWin::forceActivated() {
+#ifdef HAVE_KDE
+ show();
+ KWindowSystem::forceActiveWindow(winId());
+#else
+
#ifdef Q_WS_X11
// Bypass focus stealing prevention
QX11Info::setAppUserTime(QX11Info::appTime());
show();
raise();
activateWindow();
+#endif /* HAVE_KDE */
}
void MainWin::messagesInserted(const QModelIndex &parent, int start, int end) {