Commit ada5f7d3 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Remove unneeded pixmap usage

Summary: Found in D26350

Test Plan: Still get icons in the combobox

Reviewers: #plasma, anthonyfieroni

Reviewed By: anthonyfieroni

Differential Revision: https://phabricator.kde.org/D29025
parent 0c8dcfff
......@@ -24,7 +24,7 @@
#include <QColor>
#include <QString>
#include <QPixmap>
#include <QObject>
class LogLevelPrivate;
......
......@@ -38,7 +38,7 @@ public:
QMap<QString, QString> facilities;
QMap<QString, QString> priorities;
QMap<QString, QPixmap> priorityIcons;
QMap<QString, QIcon> priorityIcons;
};
LoggerDialog::LoggerDialog(QWidget *parent)
......@@ -144,21 +144,21 @@ void LoggerDialog::buildMaps()
// Fill the priority icon map
d->priorityIcons[Globals::instance().debugLogLevel()->name()]
= Globals::instance().debugLogLevel()->icon().name();
= QIcon::fromTheme(Globals::instance().debugLogLevel()->icon().name());
d->priorityIcons[Globals::instance().informationLogLevel()->name()]
= Globals::instance().informationLogLevel()->icon().name();
= QIcon::fromTheme(Globals::instance().informationLogLevel()->icon().name());
d->priorityIcons[Globals::instance().noticeLogLevel()->name()]
= Globals::instance().noticeLogLevel()->icon().name();
= QIcon::fromTheme(Globals::instance().noticeLogLevel()->icon().name());
d->priorityIcons[Globals::instance().warningLogLevel()->name()]
= Globals::instance().warningLogLevel()->icon().name();
= QIcon::fromTheme(Globals::instance().warningLogLevel()->icon().name());
d->priorityIcons[Globals::instance().errorLogLevel()->name()]
= Globals::instance().errorLogLevel()->icon().name();
= QIcon::fromTheme(Globals::instance().errorLogLevel()->icon().name());
d->priorityIcons[Globals::instance().criticalLogLevel()->name()]
= Globals::instance().criticalLogLevel()->icon().name();
= QIcon::fromTheme(Globals::instance().criticalLogLevel()->icon().name());
d->priorityIcons[Globals::instance().alertLogLevel()->name()]
= Globals::instance().alertLogLevel()->icon().name();
= QIcon::fromTheme(Globals::instance().alertLogLevel()->icon().name());
d->priorityIcons[Globals::instance().emergencyLogLevel()->name()]
= Globals::instance().emergencyLogLevel()->icon().name();
= QIcon::fromTheme(Globals::instance().emergencyLogLevel()->icon().name());
}
void LoggerDialog::textChanged()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment