diff options
| author | Peter Penz <[email protected]> | 2007-07-18 19:52:28 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-07-18 19:52:28 +0000 |
| commit | 43b2b591ece9c4485d9c8c03f27a733ddccdac5f (patch) | |
| tree | 24694b4add8f62d274eaf92419082007f8504f54 /src/dolphiniconsview.h | |
| parent | ee5c2c1666a229509ab24429c8dcdf8a4d456e7f (diff) | |
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
Diffstat (limited to 'src/dolphiniconsview.h')
| -rw-r--r-- | src/dolphiniconsview.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 <kcategorizedview.h> #include <kitemcategorizer.h> -#include <QtGui/QStyleOption> + +#include <QSize> +#include <QStyleOption> + #include <libdolphin_export.h> 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 }; |
