X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ficon.h;h=4cecb2add7d7725a5edbb0931bb2422b22242170;hp=7ca184484cce53c1a9e07327b451a72b2571e12c;hb=800b9cc3f9730953c74156f31aeff4d59ec7bade;hpb=71d7e1a6931b5edfa3fd15de5ad82bbca25d1426 diff --git a/src/uisupport/icon.h b/src/uisupport/icon.h index 7ca18448..4cecb2ad 100644 --- a/src/uisupport/icon.h +++ b/src/uisupport/icon.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * Copyright (C) 2005-2013 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,12 +15,14 @@ * 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 ICON_H_ #define ICON_H_ +#ifndef HAVE_KDE + #include /// A very thin wrapper around QIcon @@ -28,11 +30,28 @@ * The overloaded ctor uses IconLoader to locate an icon with this basename in the current theme * or in Qt Resources. */ -class Icon : public QIcon { - - public: - //explicit Icon(); +class Icon : public QIcon +{ +public: + Icon(); explicit Icon(const QString &iconName); + explicit Icon(const QIcon ©); + + Icon &operator=(const Icon &other); +}; + + +#else /* HAVE_KDE */ +#include +class Icon : public KIcon +{ +public: + inline Icon() : KIcon() {}; + inline explicit Icon(const QString &iconName) : KIcon(iconName) {}; + inline explicit Icon(const QIcon ©) : KIcon(copy) {}; }; + +#endif /* HAVE_KDE */ + #endif