Commit 4dc362db authored by Ismael Asensio's avatar Ismael Asensio
Browse files

Port from deprecated KIconLoader::IconSize()

Summary: `IconSize()` method is deprecated from Frameworks 5.66

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Maniphest Tasks: T11637

Differential Revision: https://phabricator.kde.org/D26237
parent 984e8686
......@@ -20,7 +20,6 @@
#include "phononwidget.h"
#include <KIconLoader>
#include <KLocalizedString>
#include <Phonon/AudioOutput>
#include <Phonon/MediaObject>
......@@ -28,6 +27,7 @@
#include <Phonon/VideoWidget>
#include <QShowEvent>
#include <QStyle>
#include <QToolButton>
#include <QVBoxLayout>
......@@ -161,7 +161,7 @@ void PhononWidget::showEvent(QShowEvent *event)
m_topLayout->addLayout(controlsLayout);
const int smallIconSize = IconSize(KIconLoader::Small);
const int smallIconSize = style()->pixelMetric(QStyle::PM_SmallIconSize);
const QSize buttonSize(smallIconSize, smallIconSize);
m_playButton->setToolTip(i18n("play"));
......
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