Commit 669773fc authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Get icon size from QStyle

Test Plan: No visual difference

Reviewers: #plasma, drosca, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25725
parent 3729eb68
......@@ -17,7 +17,6 @@ target_link_libraries(kcm_bluedevildevices
Qt5::Widgets
Qt5::DBus
KF5::I18n
KF5::IconThemes
KF5::ConfigWidgets
KF5::BluezQt)
......
......@@ -29,7 +29,6 @@
#include <KAboutData>
#include <KMessageBox>
#include <KIconLoader>
#include <KPluginFactory>
#include <KLocalizedString>
......@@ -179,7 +178,7 @@ void KCMBlueDevilDevices::initJobResult(BluezQt::InitManagerJob *job)
m_systemCheck = new SystemCheck(m_manager, this);
m_systemCheck->createWarnings(l);
const int size = IconSize(KIconLoader::Dialog);
const int size = style()->pixelMetric(QStyle::PM_LargeIconSize);
m_ui->deviceList->setIconSize(QSize(size, size));
m_devicesModel = new BluezQt::DevicesModel(m_manager, this);
......
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