/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2014 by the Quassel Project *
* devel@quassel-irc.org *
* *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) version 3. *
+ * This file is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU Library General Public License (LGPL) *
+ * as published by the Free Software Foundation; either version 2 of the *
+ * License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
#include "action.h"
#include "actioncollection.h"
#include "client.h"
-#include "iconloader.h"
#include "qtui.h"
#ifdef HAVE_KDE
_mode(Invalid),
_state(Passive),
_shouldBeVisible(true),
- _passiveIcon(DesktopIcon("quassel-inactive")),
- _activeIcon(DesktopIcon("quassel")),
- _needsAttentionIcon(DesktopIcon("quassel-message")),
+ _passiveIcon(QIcon::fromTheme("quassel-inactive", QIcon(":/icons/quassel-inactive.png"))),
+ _activeIcon(QIcon::fromTheme("quassel", QIcon(":/icons/quassel.png"))),
+ _needsAttentionIcon(QIcon::fromTheme("quassel-message", QIcon(":/icons/quassel-message.png"))),
_trayMenu(0),
_associatedWidget(parent)
{
}
-Icon SystemTray::stateIcon() const
+QIcon SystemTray::stateIcon() const
{
return stateIcon(state());
}
-Icon SystemTray::stateIcon(State state) const
+QIcon SystemTray::stateIcon(State state) const
{
switch (state) {
case Passive:
case NeedsAttention:
return _needsAttentionIcon;
}
- return Icon();
+ return QIcon();
}