NOISSUE add an 'open folder' button to the icon dialog

This commit is contained in:
Petr Mrázek
2018-02-05 02:01:12 +01:00
parent 83649b5d52
commit 41aef8414a
4 changed files with 20 additions and 5 deletions

View File

@ -401,4 +401,9 @@ int IconList::getIconIndex(const QString &key) const
return -1;
}
QString IconList::getDirectory() const
{
return m_dir.absolutePath();
}
//#include "IconList.moc"

View File

@ -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;