Commit f91c32a3 authored by Yuri Chornoivan's avatar Yuri Chornoivan Committed by Jean-Baptiste Mardelle

Port away from deprecated SmallIcon method

parent dc2e0a10
......@@ -32,12 +32,14 @@
#include <QDialog>
#include <QDialogButtonBox>
#include <QHBoxLayout>
#include <QIcon>
#include <QLabel>
#include <QMouseEvent>
#include <QPixmap>
#include <QProgressBar>
#include <QPropertyAnimation>
#include <QPushButton>
#include <QStyle>
#include <QTextEdit>
FlashLabel::FlashLabel(QWidget *parent)
......@@ -259,7 +261,7 @@ bool StatusBarMessageLabel::slotMessageTimeout()
if (iconName == nullptr) {
m_pixmap->setVisible(false);
} else {
m_pixmap->setPixmap(SmallIcon(iconName));
m_pixmap->setPixmap(QIcon::fromTheme(iconName).pixmap(style()->pixelMetric(QStyle::PM_SmallIconSize)));
m_pixmap->setVisible(true);
}
m_queueSemaphore.release();
......
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