diff options
| author | Peter Penz <[email protected]> | 2007-11-20 21:11:48 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-11-20 21:11:48 +0000 |
| commit | e46003aca365ca66ce7c7cccd47fb52d1da2fb91 (patch) | |
| tree | ea8b80800a5986f0e47f90e93c2b70f270af8a87 /src/dolphiniconsview.h | |
| parent | ddacabc391ddfe95dff909a00946182dc15f9990 (diff) | |
Drag & drop fixes for all views: assure that a consistent pixmap for the drag object is used throughout all views (still open yet: KCategorizedView uses its custom code yet)
svn path=/trunk/KDE/kdebase/apps/; revision=739322
Diffstat (limited to 'src/dolphiniconsview.h')
| -rw-r--r-- | src/dolphiniconsview.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dolphiniconsview.h b/src/dolphiniconsview.h index ae0a6299d..6c3f6fa38 100644 --- a/src/dolphiniconsview.h +++ b/src/dolphiniconsview.h @@ -54,6 +54,7 @@ protected: virtual QStyleOptionViewItem viewOptions() const; virtual void contextMenuEvent(QContextMenuEvent* event); virtual void mousePressEvent(QMouseEvent* event); + virtual void startDrag(Qt::DropActions supportedActions); virtual void dragEnterEvent(QDragEnterEvent* event); virtual void dragLeaveEvent(QDragLeaveEvent* event); virtual void dragMoveEvent(QDragMoveEvent* event); @@ -87,6 +88,13 @@ private: KFileItem itemForIndex(const QModelIndex& index) const; + /** + * Returns true, if the QListView-issue in QListView::visualRect() + * must be bypassed. TODO: this method is only temporary to have + * a usable drag & drop behavior until the issue in Qt is fixed. + */ + bool bypassVisualRectIssue() const; + private: DolphinController* m_controller; DolphinCategoryDrawer* m_categoryDrawer; |
