diff options
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; |