From fbb76a516d0884b3a24dc2e87b552a34417f71aa Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Wed, 2 Sep 2009 10:49:43 +0200 Subject: [PATCH] Better statustip for volume slider --- src/MainWindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index b17dc19..89a1690 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -294,7 +294,7 @@ void MainWindow::createToolBars() { // status tip for the volume slider QSlider* volumeQSlider = volumeSlider->findChild(); if (volumeQSlider) - volumeQSlider->setStatusTip(tr("Volume up: %1, Volume down: %2").arg( + volumeQSlider->setStatusTip(tr("Press %1 to raise the volume, %2 to lower it").arg( volumeUpAct->shortcut().toString(QKeySequence::NativeText), volumeDownAct->shortcut().toString(QKeySequence::NativeText))); // status tip for the mute button QToolButton* muteToolButton = volumeSlider->findChild(); @@ -402,7 +402,7 @@ void MainWindow::showWidget ( QWidget* widget ) { void MainWindow::fadeInWidget(QWidget *oldWidget, QWidget *newWidget) { if (faderWidget) faderWidget->close(); - if (!oldWidget || !newWidget || oldWidget == mediaView || newWidget == mediaView) return; + if (oldWidget == mediaView || newWidget == mediaView) return; QPixmap frozenView = QPixmap::grabWidget(oldWidget); faderWidget = new FaderWidget(newWidget); faderWidget->start(frozenView); @@ -552,7 +552,8 @@ void MainWindow::fullscreen() { statusBar()->setVisible(m_fullscreen); menuBar()->setVisible(m_fullscreen); - // workaround: prevent focus on the search bar beacuse it steals the Space key needed for Play/Pause + // workaround: prevent focus on the search bar + // it steals the Space key needed for Play/Pause mainToolBar->setEnabled(m_fullscreen); m_fullscreen = !m_fullscreen; -- 2.39.5