diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphiniconsview.cpp | 9 | ||||
| -rw-r--r-- | src/dolphiniconsview.h | 1 |
2 files changed, 10 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(); diff --git a/src/dolphiniconsview.h b/src/dolphiniconsview.h index e8e63eaf8..01aac03f2 100644 --- a/src/dolphiniconsview.h +++ b/src/dolphiniconsview.h @@ -59,6 +59,7 @@ protected: virtual void dropEvent(QDropEvent* event); virtual void keyPressEvent(QKeyEvent* event); virtual void wheelEvent(QWheelEvent* event); + virtual void showEvent(QShowEvent* event); private slots: void slotShowPreviewChanged(); |
