/***************************************************************************
- * Copyright (C) 2005-2012 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 *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "graphicalui.h"
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 :)