X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ficon.h;h=2c1d62eead8dfca60914aa648daf35d00f4cf943;hp=2586f824ef42b80dbafae0af827c24ae27c52494;hb=328b48e6fbd78d6158eb55296c0843fc5a41bcfa;hpb=b99ff5e5d79924cffe794574cab7c92ad99cc2a2 diff --git a/src/uisupport/icon.h b/src/uisupport/icon.h index 2586f824..2c1d62ee 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-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -21,6 +21,8 @@ #ifndef ICON_H_ #define ICON_H_ +#ifndef HAVE_KDE + #include /// A very thin wrapper around QIcon @@ -38,4 +40,16 @@ class Icon : public 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& copy) : KIcon(copy) {}; +}; + +#endif /* HAVE_KDE */ + #endif