┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-03-20 21:23:06 +0000
committerPeter Penz <[email protected]>2008-03-20 21:23:06 +0000
commitc50a1e000f2def0fd013dff03a42a6627525525d (patch)
tree094a4bc3287ff8be5d7ca7013cce6b0f1ab333e5 /src/dolphiniconsview.cpp
parenta47758bae5ffcc3073adb44d4957c7c9b014bd85 (diff)
assure that the maximum size of the item-delegate gets updated before showing the icons view
svn path=/trunk/KDE/kdebase/apps/; revision=788152
Diffstat (limited to 'src/dolphiniconsview.cpp')
-rw-r--r--src/dolphiniconsview.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp
index 6235fcd87..9b9252857 100644
--- a/src/dolphiniconsview.cpp
+++ b/src/dolphiniconsview.cpp
@@ -255,6 +255,15 @@ void DolphinIconsView::wheelEvent(QWheelEvent* event)
}
}
+void DolphinIconsView::showEvent(QShowEvent* event)
+{
+ Q_ASSERT(qobject_cast<DolphinFileItemDelegate*>(itemDelegate()) != 0);
+ DolphinFileItemDelegate* delegate = static_cast<DolphinFileItemDelegate*>(itemDelegate());
+ delegate->setMaximumSize(m_itemSize);
+
+ KCategorizedView::showEvent(event);
+}
+
void DolphinIconsView::slotShowPreviewChanged()
{
const DolphinView* view = m_controller->dolphinView();