From a6627b9f2345eac9cc650aa9f87f9c69db8c707f Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 23 Feb 2012 15:51:47 +0100 Subject: Fix drag and drop issue when dragging between windows Explicitly check whether a dragging is ongoing to decide whether a tooltip may be shown or not, just using QApplication::mouseButtons() is not sufficient when dragging between windows. BUG: 294533 FIXED-IN: 4.8.1 --- src/views/dolphinview.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index bc65a8b77..42ad26098 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -741,10 +741,12 @@ private: static QString fileSizeText(KIO::filesize_t fileSize); private: - bool m_active : 1; - bool m_tabsForFiles : 1; - bool m_assureVisibleCurrentIndex : 1; - bool m_isFolderWritable : 1; + bool m_active; + bool m_tabsForFiles; + bool m_assureVisibleCurrentIndex; + bool m_isFolderWritable; + bool m_dragging; // True if a dragging is done. Required to be able to decide whether a + // tooltip may be shown when hovering an item. KUrl m_url; Mode m_mode; -- cgit v1.3.1