Commit e8057840 authored by Volker Krause's avatar Volker Krause
Browse files

Use QStyle to determine icon size

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: kde-pim

Tags: #kde_pim

Maniphest Tasks: T11637

Differential Revision: https://phabricator.kde.org/D24779
parent 0e90ee9a
......@@ -42,7 +42,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
WindowSystem
I18n
XmlGui
IconThemes
)
if (NOT APPLE)
......
......@@ -25,7 +25,6 @@ target_link_libraries(KF5KontactInterface
PRIVATE
KF5::WindowSystem
KF5::I18n
KF5::IconThemes
)
set_target_properties(KF5KontactInterface PROPERTIES
......
......@@ -33,8 +33,7 @@
#include <QDropEvent>
#include <QHBoxLayout>
#include <QIcon>
#include <KIconLoader>
#include <QStyle>
#include <QFontDatabase>
using namespace KontactInterface;
......@@ -92,7 +91,7 @@ QWidget *Summary::createHeader(QWidget *parent, const QString &iconname, const Q
QLabel *label = new QLabel(box);
hbox->addWidget(label);
label->setPixmap(icon.pixmap(IconSize(KIconLoader::Toolbar), IconSize(KIconLoader::Toolbar)));
label->setPixmap(icon.pixmap(style()->pixelMetric(QStyle::PM_ToolBarIconSize)));
label->setFixedSize(label->sizeHint());
label->setAcceptDrops(true);
......
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