From e46003aca365ca66ce7c7cccd47fb52d1da2fb91 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 20 Nov 2007 21:11:48 +0000 Subject: 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 --- src/dolphiniconsview.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/dolphiniconsview.h') 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; -- cgit v1.3