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
This commit is contained in:
Ismael Asensio 2019-12-26 17:27:10 +01:00
parent 984e8686e8
commit 4dc362db1e

View file

@ -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"));