diff options
| author | Peter Penz <[email protected]> | 2008-03-23 15:54:07 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-03-23 15:54:07 +0000 |
| commit | 6420d5f973bdf63375c02ab5308873d42f859f8d (patch) | |
| tree | 76630564c250a704fae8dafc4fea3a95398c3fe7 /src/dolphiniconsview.cpp | |
| parent | cfb135f24e6b1b3eb1253c8ebf7c8e7307974eea (diff) | |
provide a config module for the settings GUI of the Dolphin views, so that it can be embedded into Konqueror
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=789209
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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 <kcategorizedsortfilterproxymodel.h> #include <kdialog.h> #include <kdirmodel.h> +#include <kfileitemdelegate.h> #include <QAbstractProxyModel> #include <QApplication> @@ -257,8 +257,7 @@ void DolphinIconsView::wheelEvent(QWheelEvent* event) void DolphinIconsView::showEvent(QShowEvent* event) { - Q_ASSERT(qobject_cast<DolphinFileItemDelegate*>(itemDelegate()) != 0); - DolphinFileItemDelegate* delegate = static_cast<DolphinFileItemDelegate*>(itemDelegate()); + KFileItemDelegate* delegate = dynamic_cast<KFileItemDelegate*>(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<DolphinFileItemDelegate*>(itemDelegate()); + KFileItemDelegate* delegate = dynamic_cast<KFileItemDelegate*>(itemDelegate()); if (delegate != 0) { delegate->setMaximumSize(m_itemSize); } |
