/***************************************************************************
- * 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 *
#ifndef ICON_H_
#define ICON_H_
+#ifndef HAVE_KDE
+
#include <QIcon>
/// A very thin wrapper around QIcon
class Icon : public QIcon {
public:
- //explicit Icon();
+ Icon();
explicit Icon(const QString &iconName);
+ explicit Icon(const QIcon& copy);
+
+ Icon& operator=(const Icon &other);
};
+#else /* HAVE_KDE */
+#include <KIcon>
+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