summaryrefslogtreecommitdiffstats
path: root/logic/IconListModel.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-27 05:39:49 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-27 05:39:49 +0200
commit5573ed52e8b68a54330cfee21b853da53d079078 (patch)
tree10eebd4ac4804550441ccc2a591ed00640adb75f /logic/IconListModel.h
parente6999b3b62c5b765eff1736477a052f1cfeffd19 (diff)
downloadMultiMC-5573ed52e8b68a54330cfee21b853da53d079078.tar
MultiMC-5573ed52e8b68a54330cfee21b853da53d079078.tar.gz
MultiMC-5573ed52e8b68a54330cfee21b853da53d079078.tar.lz
MultiMC-5573ed52e8b68a54330cfee21b853da53d079078.tar.xz
MultiMC-5573ed52e8b68a54330cfee21b853da53d079078.zip
Add/remove/drag&drop for the icon picker.
Diffstat (limited to 'logic/IconListModel.h')
-rw-r--r--logic/IconListModel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/logic/IconListModel.h b/logic/IconListModel.h
index 31b05e64..907dfd81 100644
--- a/logic/IconListModel.h
+++ b/logic/IconListModel.h
@@ -18,7 +18,14 @@ public:
virtual int rowCount ( const QModelIndex& parent = QModelIndex() ) const;
bool addIcon(QString key, QString name, QString path, bool is_builtin = false);
+ bool deleteIcon(QString key);
+ virtual QStringList mimeTypes() const;
+ virtual Qt::DropActions supportedDropActions() const;
+ virtual bool dropMimeData ( const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent );
+ virtual Qt::ItemFlags flags ( const QModelIndex& index ) const;
+
+ void installIcons ( QStringList iconFiles );
private:
virtual ~IconList();
@@ -27,6 +34,7 @@ private:
IconList ( const IconList & ) = delete;
// hide assign op
IconList& operator= ( const IconList & ) = delete;
+ void reindex();
static IconList* m_Instance;
static QMutex mutex;
Private* d;