X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Flegacysystemtray.cpp;h=2166c4ee6ac94479cb71dde5b8f3c2fb19d51ebf;hp=7c2c81aa7af52c573322b96545a5f7363d70c100;hb=aec9c711900a443bfa7860fa86c6e9c86b81a3e7;hpb=d0c0848307dab16108e855cab557be4a2f3d8d1b diff --git a/src/qtui/legacysystemtray.cpp b/src/qtui/legacysystemtray.cpp index 7c2c81aa..2166c4ee 100644 --- a/src/qtui/legacysystemtray.cpp +++ b/src/qtui/legacysystemtray.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This file is free software; you can redistribute it and/or modify * @@ -29,7 +29,7 @@ LegacySystemTray::LegacySystemTray(QWidget *parent) _blinkState(false), _lastMessageId(0) { -#ifndef HAVE_KDE +#ifndef HAVE_KDE4 _trayIcon = new QSystemTrayIcon(associatedWidget()); #else _trayIcon = new KSystemTrayIcon(associatedWidget()); @@ -37,7 +37,7 @@ LegacySystemTray::LegacySystemTray(QWidget *parent) disconnect(_trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), _trayIcon, SLOT(activateOrHide(QSystemTrayIcon::ActivationReason))); #endif -#ifndef Q_WS_MAC +#ifndef Q_OS_MAC connect(_trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), SLOT(on_activated(QSystemTrayIcon::ActivationReason))); #endif @@ -67,7 +67,7 @@ void LegacySystemTray::syncLegacyIcon() { _trayIcon->setIcon(stateIcon()); -#if defined Q_WS_MAC || defined Q_WS_WIN +#if defined Q_OS_MAC || defined Q_OS_WIN QString tooltip = QString("%1").arg(toolTipTitle()); if (!toolTipSubTitle().isEmpty()) tooltip += QString("\n%1").arg(toolTipSubTitle()); @@ -142,7 +142,7 @@ void LegacySystemTray::setState(State state_) } -Icon LegacySystemTray::stateIcon() const +QIcon LegacySystemTray::stateIcon() const { if (mode() == Legacy && state() == NeedsAttention && !_blinkState) return SystemTray::stateIcon(Active);