From 6420d5f973bdf63375c02ab5308873d42f859f8d Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 23 Mar 2008 15:54:07 +0000 Subject: provide a config module for the settings GUI of the Dolphin views, so that it can be embedded into Konqueror CCMAIL: faure@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=789209 --- src/dolphiniconsview.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/dolphiniconsview.cpp') diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 9b9252857..da1784c31 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -21,7 +21,6 @@ #include "dolphincategorydrawer.h" #include "dolphincontroller.h" -#include "dolphinfileitemdelegate.h" #include "dolphinsettings.h" #include "dolphin_iconsmodesettings.h" #include "dolphin_generalsettings.h" @@ -31,6 +30,7 @@ #include #include #include +#include #include #include @@ -257,8 +257,7 @@ void DolphinIconsView::wheelEvent(QWheelEvent* event) void DolphinIconsView::showEvent(QShowEvent* event) { - Q_ASSERT(qobject_cast(itemDelegate()) != 0); - DolphinFileItemDelegate* delegate = static_cast(itemDelegate()); + KFileItemDelegate* delegate = dynamic_cast(itemDelegate()); delegate->setMaximumSize(m_itemSize); KCategorizedView::showEvent(event); @@ -428,7 +427,7 @@ void DolphinIconsView::updateGridSize(bool showPreview, int additionalInfoCount) m_controller->setZoomInPossible(isZoomInPossible()); m_controller->setZoomOutPossible(isZoomOutPossible()); - DolphinFileItemDelegate* delegate = qobject_cast(itemDelegate()); + KFileItemDelegate* delegate = dynamic_cast(itemDelegate()); if (delegate != 0) { delegate->setMaximumSize(m_itemSize); } -- cgit v1.3