┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-03-13 21:48:24 +0000
committerPeter Penz <[email protected]>2008-03-13 21:48:24 +0000
commit6f1c9ca1b96212bdd1bede8e38ecfa64d98edb84 (patch)
tree45d73f7d2dd2f82dd9995fbe002032015a8ba0fc /src/dolphiniconsview.cpp
parent3d75a64e6ea4958e896f2dc7d2376bdf96de983f (diff)
Don't force that the preview size must be >= the icon size. This gets confusing when the user uses the Zoom In/Zoom Out feature inside a view a lot (e. g. by Ctrl + scroll wheel). This is because decreasing the preview size would also decrease the icon size, but when increasing the preview size again the icon size remains... I even got confused myself by this "feature" although I knew the reason for it ;-)
svn path=/trunk/KDE/kdebase/apps/; revision=785373
Diffstat (limited to 'src/dolphiniconsview.cpp')
-rw-r--r--src/dolphiniconsview.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp
index e32eee1a5..45fbf25b2 100644
--- a/src/dolphiniconsview.cpp
+++ b/src/dolphiniconsview.cpp
@@ -326,10 +326,6 @@ void DolphinIconsView::zoomIn()
} else {
newIconSize = increasedIconSize(oldIconSize);
settings->setIconSize(newIconSize);
- if (settings->previewSize() < newIconSize) {
- // assure that the preview size is always >= the icon size
- settings->setPreviewSize(newIconSize);
- }
}
// increase also the grid size
@@ -353,11 +349,6 @@ void DolphinIconsView::zoomOut()
if (showPreview) {
const int previewSize = decreasedIconSize(settings->previewSize());
settings->setPreviewSize(previewSize);
- if (settings->iconSize() > previewSize) {
- // assure that the icon size is always <= the preview size
- newIconSize = previewSize;
- settings->setIconSize(newIconSize);
- }
} else {
newIconSize = decreasedIconSize(settings->iconSize());
settings->setIconSize(newIconSize);
@@ -443,7 +434,6 @@ void DolphinIconsView::updateGridSize(bool showPreview, int additionalInfoCount)
if (showPreview) {
const int previewSize = settings->previewSize();
const int diff = previewSize - size;
- Q_ASSERT(diff >= 0);
itemWidth += diff;
itemHeight += diff;