/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2014 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This contains code from KStatusNotifierItem, part of the KDE libs *
Q_ASSERT(!_instance);
_instance = this;
-#ifdef Q_WS_WIN
+#ifdef Q_OS_WIN
_dwTickCount = 0;
#endif
}
void GraphicalUi::init()
{
-#ifdef Q_WS_WIN
+#ifdef Q_OS_WIN
mainWidget()->installEventFilter(this);
#endif
}
bool GraphicalUi::eventFilter(QObject *obj, QEvent *event)
{
-#ifdef Q_WS_WIN
+#ifdef Q_OS_WIN
if (obj == mainWidget() && event->type() == QEvent::ActivationChange) {
_dwTickCount = GetTickCount();
}
bool GraphicalUi::checkMainWidgetVisibility(bool perform)
{
-#ifdef Q_WS_WIN
+#ifdef Q_OS_WIN
// the problem is that we lose focus when the systray icon is activated
// and we don't know the former active window
// therefore we watch for activation event and use our stopwatch :)