From 86ee6dbd07b42789676b8e7eee097104a93e8d54 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 23 Dec 2008 10:54:56 +0000 Subject: assure that the zoom slider tooltip is always updated when changing a value svn path=/trunk/KDE/kdebase/apps/; revision=900577 --- src/dolphinstatusbar.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/dolphinstatusbar.h') diff --git a/src/dolphinstatusbar.h b/src/dolphinstatusbar.h index a5062928c..c6a2e8c43 100644 --- a/src/dolphinstatusbar.h +++ b/src/dolphinstatusbar.h @@ -116,7 +116,7 @@ public: */ void setDefaultText(const QString& text); const QString& defaultText() const; - + /** * Refreshes the status bar to get synchronized with the (updated) Dolphin settings. */ @@ -135,7 +135,7 @@ private slots: * content is updated. */ void updateSpaceInfoContent(const KUrl& url); - + /** * Sets the zoom level of the item view to \a zoomLevel. */ @@ -147,11 +147,11 @@ private slots: * enough width is available. */ void assureVisibleText(); - + void zoomOut(); void zoomIn(); void showZoomSliderToolTip(int zoomLevel); - + private: /** * Makes the space information widget and zoom slider widget @@ -161,11 +161,17 @@ private: */ void setExtensionsVisible(bool visible); + /** + * Updates the text of the zoom slider tooltip to show + * the currently used size. + */ + void updateZoomSliderToolTip(); + private: DolphinView* m_view; StatusBarMessageLabel* m_messageLabel; StatusBarSpaceInfo* m_spaceInfo; - + QWidget* m_zoomWidget; QToolButton* m_zoomOut; QSlider* m_zoomSlider; -- cgit v1.3