summaryrefslogtreecommitdiff
path: root/src/icondelegate.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-03-27 12:32:23 +0100
committerTannin <devnull@localhost>2013-03-27 12:32:23 +0100
commit10485e15e4de3e1a6c30733ad2d4850591d31509 (patch)
treed4ca59328823e5d6ff8be6f403f0eb8c5c7cf05a /src/icondelegate.h
parentec0ea9df8dabe686d3256665c7ed638660309915 (diff)
- some cleanup to hookdll
- exchanged grouping proxies with existing solution from the kde project
Diffstat (limited to 'src/icondelegate.h')
-rw-r--r--src/icondelegate.h62
1 files changed, 30 insertions, 32 deletions
diff --git a/src/icondelegate.h b/src/icondelegate.h
index de49d810..dd9f9dfc 100644
--- a/src/icondelegate.h
+++ b/src/icondelegate.h
@@ -17,35 +17,33 @@ You should have received a copy of the GNU General Public License
along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef ICONDELEGATE_H
-#define ICONDELEGATE_H
-
-#include "modinfo.h"
-#include <QStyledItemDelegate>
-#include <QAbstractProxyModel>
-
-
-class IconDelegate : public QStyledItemDelegate
-{
- Q_OBJECT
-public:
-
- explicit IconDelegate(QAbstractProxyModel *proxyModel, QObject *parent = 0);
-
- virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
- virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
-signals:
-
-public slots:
-
-private:
-
- QIcon getFlagIcon(ModInfo::EFlag flag) const;
-
-private:
-
- QAbstractProxyModel *m_ProxyModel;
-
-};
-
-#endif // ICONDELEGATE_H
+#ifndef ICONDELEGATE_H
+#define ICONDELEGATE_H
+
+#include "modinfo.h"
+#include <QStyledItemDelegate>
+#include <QAbstractProxyModel>
+
+
+class IconDelegate : public QStyledItemDelegate
+{
+ Q_OBJECT
+public:
+
+ explicit IconDelegate(QObject *parent = 0);
+
+ virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
+ virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
+signals:
+
+public slots:
+
+private:
+
+ QIcon getFlagIcon(ModInfo::EFlag flag) const;
+
+private:
+
+};
+
+#endif // ICONDELEGATE_H