mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 00:11:21 +00:00
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:
parent
984e8686e8
commit
4dc362db1e
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
#include "phononwidget.h"
|
#include "phononwidget.h"
|
||||||
|
|
||||||
#include <KIconLoader>
|
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
#include <Phonon/AudioOutput>
|
#include <Phonon/AudioOutput>
|
||||||
#include <Phonon/MediaObject>
|
#include <Phonon/MediaObject>
|
||||||
|
@ -28,6 +27,7 @@
|
||||||
#include <Phonon/VideoWidget>
|
#include <Phonon/VideoWidget>
|
||||||
|
|
||||||
#include <QShowEvent>
|
#include <QShowEvent>
|
||||||
|
#include <QStyle>
|
||||||
#include <QToolButton>
|
#include <QToolButton>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ void PhononWidget::showEvent(QShowEvent *event)
|
||||||
|
|
||||||
m_topLayout->addLayout(controlsLayout);
|
m_topLayout->addLayout(controlsLayout);
|
||||||
|
|
||||||
const int smallIconSize = IconSize(KIconLoader::Small);
|
const int smallIconSize = style()->pixelMetric(QStyle::PM_SmallIconSize);
|
||||||
const QSize buttonSize(smallIconSize, smallIconSize);
|
const QSize buttonSize(smallIconSize, smallIconSize);
|
||||||
|
|
||||||
m_playButton->setToolTip(i18n("play"));
|
m_playButton->setToolTip(i18n("play"));
|
||||||
|
|
Loading…
Reference in a new issue