diff options
| author | Peter Penz <[email protected]> | 2008-08-08 06:31:58 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-08-08 06:31:58 +0000 |
| commit | e1d76541ba62e2eec5874ace02049be96bf3378e (patch) | |
| tree | 83ed14977e40c141d8f6fcf3bd3798383a4d4ee9 /src/dolphincontroller.h | |
| parent | 17dca27e615fa63ac6b8d7bf3aabfdbd9d71e0f5 (diff) | |
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
Diffstat (limited to 'src/dolphincontroller.h')
| -rw-r--r-- | src/dolphincontroller.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 |
