diff options
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 9 |
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(); |
