X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Ficon.h;h=fd317d00e496cb30fe957b15b6ac4be93d7d9451;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hp=2c1d62eead8dfca60914aa648daf35d00f4cf943;hpb=61c8d84d1c849373e0f115dc748ed45cff95287d;p=quassel.git diff --git a/src/uisupport/icon.h b/src/uisupport/icon.h index 2c1d62ee..fd317d00 100644 --- a/src/uisupport/icon.h +++ b/src/uisupport/icon.h @@ -30,26 +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: +class Icon : public QIcon +{ +public: Icon(); explicit Icon(const QString &iconName); - explicit Icon(const QIcon& copy); + explicit Icon(const QIcon ©); - Icon& operator=(const Icon &other); + Icon &operator=(const Icon &other); }; + #else /* HAVE_KDE */ #include -class Icon : public KIcon { - - public: +class Icon : public KIcon +{ +public: inline Icon() : KIcon() {}; inline explicit Icon(const QString &iconName) : KIcon(iconName) {}; - inline explicit Icon(const QIcon& copy) : KIcon(copy) {}; + inline explicit Icon(const QIcon ©) : KIcon(copy) {}; }; + #endif /* HAVE_KDE */ #endif