diff options
| author | Ismael Asensio <[email protected]> | 2019-12-26 17:27:10 +0100 |
|---|---|---|
| committer | Ismael Asensio <[email protected]> | 2019-12-26 19:25:55 +0100 |
| commit | 4dc362db1ec564b9fd2588f5b642406d6a712229 (patch) | |
| tree | b3632eeced413eca803ca7faaade32b878e5bce0 /src/panels | |
| parent | 984e8686e8fffb7e0945fae80e310aef52d804a6 (diff) | |
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
Diffstat (limited to 'src/panels')
| -rw-r--r-- | src/panels/information/phononwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/information/phononwidget.cpp b/src/panels/information/phononwidget.cpp index 6911f79bd..f815b4bd0 100644 --- a/src/panels/information/phononwidget.cpp +++ b/src/panels/information/phononwidget.cpp @@ -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")); |
