diff --git a/src/util/helpers.cpp b/src/util/helpers.cpp index 38ee831..d692911 100644 --- a/src/util/helpers.cpp +++ b/src/util/helpers.cpp @@ -24,16 +24,11 @@ #include #include -#include #include #include -#include -#include #include #include -#include - void registerMetaTypes() { qRegisterMetaType("Operation*"); @@ -45,18 +40,6 @@ bool caseInsensitiveLessThan(const QString& s1, const QString& s2) return s1.toLower() < s2.toLower(); } -QIcon createFileSystemColor(FileSystem::Type type, quint32 size) -{ - QPixmap pixmap(size, size); - QPainter painter(&pixmap); - painter.setPen(QColor(0, 0, 0)); - painter.setBrush(Config::fileSystemColorCode(type)); - painter.drawRect(QRect(0, 0, pixmap.width() - 1, pixmap.height() - 1)); - painter.end(); - - return QIcon(pixmap); -} - void showColumnsContextMenu(const QPoint& p, QTreeWidget& tree) { QMenu headerMenu(i18nc("@title:menu", "Columns")); diff --git a/src/util/helpers.h b/src/util/helpers.h index 29b64de..fe033ad 100644 --- a/src/util/helpers.h +++ b/src/util/helpers.h @@ -25,7 +25,6 @@ class KAboutData; class QString; -class QIcon; class QPoint; class QTreeWidget; @@ -33,8 +32,6 @@ LIBKPMCORE_EXPORT void registerMetaTypes(); LIBKPMCORE_EXPORT bool caseInsensitiveLessThan(const QString& s1, const QString& s2); -LIBKPMCORE_EXPORT QIcon createFileSystemColor(FileSystem::Type type, quint32 size); - LIBKPMCORE_EXPORT void showColumnsContextMenu(const QPoint& p, QTreeWidget& tree); LIBKPMCORE_EXPORT bool checkAccessibleDevices();