diff options
| author | Frank Reininghaus <[email protected]> | 2012-11-04 14:39:49 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2012-11-04 14:39:49 +0100 |
| commit | 07721cf76459d8fff9b96ffe3dde83bc418bed31 (patch) | |
| tree | 518cfa6fe4ccba1e3dfe736672444a664eca9f65 /src | |
| parent | 951dbd6d67d885d9583e8ce45635a4ae086445fb (diff) | |
Do not use a hardcoded size for the buttons in the Information panel
Thanks to Kai Uwe Broulok and Jekyll Wu for the investigation!
BUG: 309498
FIXED-IN: 4.9.4
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/information/phononwidget.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/panels/information/phononwidget.cpp b/src/panels/information/phononwidget.cpp index f0c030ed6..a36ada180 100644 --- a/src/panels/information/phononwidget.cpp +++ b/src/panels/information/phononwidget.cpp @@ -123,14 +123,17 @@ void PhononWidget::showEvent(QShowEvent *event) m_topLayout->addLayout(controlsLayout); + const int smallIconSize = IconSize(KIconLoader::Small); + const QSize buttonSize(smallIconSize, smallIconSize); + m_playButton->setToolTip(i18n("play")); - m_playButton->setIconSize(QSize(16, 16)); + m_playButton->setIconSize(buttonSize); m_playButton->setIcon(KIcon("media-playback-start")); m_playButton->setAutoRaise(true); connect(m_playButton, SIGNAL(clicked()), this, SLOT(play())); m_stopButton->setToolTip(i18n("stop")); - m_stopButton->setIconSize(QSize(16, 16)); + m_stopButton->setIconSize(buttonSize); m_stopButton->setIcon(KIcon("media-playback-stop")); m_stopButton->setAutoRaise(true); m_stopButton->hide(); |
