diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-27 05:39:49 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-27 05:39:49 +0200 |
commit | 5573ed52e8b68a54330cfee21b853da53d079078 (patch) | |
tree | 10eebd4ac4804550441ccc2a591ed00640adb75f /logic/IconListModel.h | |
parent | e6999b3b62c5b765eff1736477a052f1cfeffd19 (diff) | |
download | MultiMC-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.h | 8 |
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; |