summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/gui/icons/IconList.cpp5
-rw-r--r--api/gui/icons/IconList.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/api/gui/icons/IconList.cpp b/api/gui/icons/IconList.cpp
index 139fe5cf..d23ae4d6 100644
--- a/api/gui/icons/IconList.cpp
+++ b/api/gui/icons/IconList.cpp
@@ -401,4 +401,9 @@ int IconList::getIconIndex(const QString &key) const
return -1;
}
+QString IconList::getDirectory() const
+{
+ return m_dir.absolutePath();
+}
+
//#include "IconList.moc"
diff --git a/api/gui/icons/IconList.h b/api/gui/icons/IconList.h
index 41ec0bdd..56bdba28 100644
--- a/api/gui/icons/IconList.h
+++ b/api/gui/icons/IconList.h
@@ -39,6 +39,7 @@ public:
QIcon getIcon(const QString &key) const;
int getIconIndex(const QString &key) const;
+ QString getDirectory() const;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const override;