From e1d76541ba62e2eec5874ace02049be96bf3378e Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 8 Aug 2008 06:31:58 +0000 Subject: assure correct update of the enabled/disabled state of the zoom actions (no backport required, as a new zooming approach is used on trunk) svn path=/trunk/KDE/kdebase/apps/; revision=843849 --- src/dolphincontroller.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/dolphincontroller.h') diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 4e8885ef9..e8ca55e19 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -194,6 +194,13 @@ public: * (see DolphinController::zoomLevel()). */ static int iconSizeForZoomLevel(int level); + + /** + * Helper method for the view implementation to get + * the zoom level for the icon size \a size + * (see DolphinController::zoomLevel()). + */ + static int zoomLevelForIconSize(const QSize& size); /** * Tells the view implementation to zoom out by emitting the signal zoomOut() @@ -383,7 +390,7 @@ inline int DolphinController::zoomLevelMinimum() const inline int DolphinController::zoomLevelMaximum() const { - return 6; + return 7; } #endif -- cgit v1.3