summaryrefslogtreecommitdiffstats
path: root/api/gui
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-02-05 02:01:12 +0100
committerPetr Mrázek <peterix@gmail.com>2018-02-05 02:01:12 +0100
commit41aef8414a0c01883a431c0353369ba1651b5cd9 (patch)
treecbbc45b79dc252cb02a7f8a503c86e94a48f3bde /api/gui
parent83649b5d52c1e9e56cf1fc4e5f5ab42b7508ad77 (diff)
downloadMultiMC-41aef8414a0c01883a431c0353369ba1651b5cd9.tar
MultiMC-41aef8414a0c01883a431c0353369ba1651b5cd9.tar.gz
MultiMC-41aef8414a0c01883a431c0353369ba1651b5cd9.tar.lz
MultiMC-41aef8414a0c01883a431c0353369ba1651b5cd9.tar.xz
MultiMC-41aef8414a0c01883a431c0353369ba1651b5cd9.zip
NOISSUE add an 'open folder' button to the icon dialog
Diffstat (limited to 'api/gui')
-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;