X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Ficon.cpp;h=b4b86efdc78b8f30a60f592cfe380098884b8961;hb=2f6d1f4ead3a11b1f9ca4676e659bd93042a67af;hp=729a88b22823acb6bf3acadd7ab1b37af2592431;hpb=71d7e1a6931b5edfa3fd15de5ad82bbca25d1426;p=quassel.git diff --git a/src/uisupport/icon.cpp b/src/uisupport/icon.cpp index 729a88b2..b4b86efd 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-2014 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,12 +15,37 @@ * 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. * ***************************************************************************/ +#ifndef HAVE_KDE + #include "icon.h" #include "iconloader.h" -Icon::Icon(const QString &name) : QIcon() { - addPixmap(IconLoader::global()->loadIcon(name, IconLoader::Desktop)); +Icon::Icon() : QIcon() +{ +} + + +Icon::Icon(const QString &name) : QIcon() +{ + addPixmap(IconLoader::global()->loadIcon(name, IconLoader::Desktop)); +} + + +Icon::Icon(const QIcon ©) : QIcon(copy) +{ +} + + +Icon &Icon::operator=(const Icon &other) +{ + if (this != &other) { + QIcon::operator=(other); + } + return *this; } + + +#endif