From 43b2b591ece9c4485d9c8c03f27a733ddccdac5f Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 18 Jul 2007 19:52:28 +0000 Subject: Assure that the item size is not exceeded -> the spacing is also respected for texts that cannot be wrapped svn path=/trunk/KDE/kdebase/apps/; revision=689651 --- src/dolphiniconsview.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/dolphiniconsview.h') diff --git a/src/dolphiniconsview.h b/src/dolphiniconsview.h index ec18400c6..7e5544ec0 100644 --- a/src/dolphiniconsview.h +++ b/src/dolphiniconsview.h @@ -22,7 +22,10 @@ #include #include -#include + +#include +#include + #include class DolphinController; @@ -41,6 +44,9 @@ public: explicit DolphinIconsView(QWidget* parent, DolphinController* controller); virtual ~DolphinIconsView(); + /** @see QAbstractItemView::visualRect() */ + virtual QRect visualRect(const QModelIndex& index) const; + protected: virtual QStyleOptionViewItem viewOptions() const; virtual void contextMenuEvent(QContextMenuEvent* event); @@ -77,6 +83,8 @@ private: DolphinController* m_controller; QStyleOptionViewItem m_viewOptions; + QSize m_itemSize; + bool m_dragging; // TODO: remove this property when the issue #160611 is solved in Qt 4.4 QRect m_dropRect; // TODO: remove this property when the issue #160611 is solved in Qt 4.4 }; -- cgit v1.3.1