From: Sascha Peilicke Date: Tue, 7 Oct 2008 08:26:07 +0000 (+0000) Subject: Small fix to the zoom slider bar, the old sliderMoved(int) signal is just fired when... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/5a4749d9620cc378d10e95cb986ac9b71217b97c?ds=inline Small fix to the zoom slider bar, the old sliderMoved(int) signal is just fired when the user pressed a mouse button and drags the slider. It is however possible to change the slider position by clicking into it or (when focus follows mouse is enabled) by hovering on top of the slider and scrolling the mouse wheel. The zoom state was currently not updated in the latter 2 cases. svn path=/trunk/KDE/kdebase/apps/; revision=868815 --- diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp index cddb09fd2..499a982bc 100644 --- a/src/dolphinstatusbar.cpp +++ b/src/dolphinstatusbar.cpp @@ -64,7 +64,7 @@ DolphinStatusBar::DolphinStatusBar(QWidget* parent, DolphinView* view) : m_zoomSlider->setRange(min, max); m_zoomSlider->setValue(view->zoomLevel()); - connect(m_zoomSlider, SIGNAL(sliderMoved(int)), + connect(m_zoomSlider, SIGNAL(valueChanged(int)), this, SLOT(setZoomLevel(int))); connect(m_view, SIGNAL(zoomLevelChanged(int)), m_zoomSlider, SLOT(setValue(int)));