X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ficon.cpp;h=a8785b20379dc1c6bfd2621ec8f9b763117f2355;hp=729a88b22823acb6bf3acadd7ab1b37af2592431;hb=7c9c1b348382b8b77f96a883945c522d32a478d5;hpb=71d7e1a6931b5edfa3fd15de5ad82bbca25d1426 diff --git a/src/uisupport/icon.cpp b/src/uisupport/icon.cpp index 729a88b2..a8785b20 100644 --- a/src/uisupport/icon.cpp +++ b/src/uisupport/icon.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,9 +18,28 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#ifndef HAVE_KDE + #include "icon.h" #include "iconloader.h" +Icon::Icon() : QIcon() { + +} + Icon::Icon(const QString &name) : QIcon() { addPixmap(IconLoader::global()->loadIcon(name, IconLoader::Desktop)); } + +Icon::Icon(const QIcon& copy) : QIcon(copy) { + +} + +Icon& Icon::operator=(const Icon &other) { + if (this != &other) { + QIcon::operator=(other); + } + return *this; +} + +#endif