diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-02 17:30:45 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-02 17:30:45 +0200 |
commit | b5217fb4c9b89c0d0552644e95614f946e69359f (patch) | |
tree | d81529264e8d8f016092811f856628daa173e49d /src/util.cpp | |
parent | Update wraps (diff) | |
download | smolbote-b5217fb4c9b89c0d0552644e95614f946e69359f.tar.xz |
Add tabler-icons
Add rcc dependency to create dumps of svg files
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/util.cpp b/src/util.cpp index fe74175..3dc5f8d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7,9 +7,9 @@ */ #include "util.h" +#include <QApplication> #include <QDir> #include <QFileInfo> -#include <QApplication> #include <spdlog/spdlog.h> #define ListSeparator QLatin1String(";") @@ -47,22 +47,3 @@ const QStringList Util::files(const QString &location, const QStringList &nameFi return filelist; } -// icon names: https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html -QIcon Util::icon(QStyle::StandardPixmap id) { - switch(id) { - case QStyle::SP_ArrowBack: - return QIcon::fromTheme("go-previous", qApp->style()->standardIcon(id)); - case QStyle::SP_ArrowForward: - return QIcon::fromTheme("go-next", qApp->style()->standardIcon(id)); - case QStyle::SP_BrowserStop: - return QIcon::fromTheme("process-stop", qApp->style()->standardIcon(id)); - case QStyle::SP_BrowserReload: - return QIcon::fromTheme("view-refresh", qApp->style()->standardIcon(id)); - case QStyle::SP_DirHomeIcon: - return QIcon::fromTheme("go-home", qApp->style()->standardIcon(id)); - - default: - spdlog::warn("FIXME: unhandled StandardPixmap {}", id); - return qApp->style()->standardIcon(id); - } -} |