mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
don't forget to clear the hover information when a drag leave event occurs
svn path=/trunk/KDE/kdebase/apps/; revision=670856
This commit is contained in:
parent
c5a871a6a2
commit
ea54858463
6 changed files with 30 additions and 0 deletions
|
@ -207,6 +207,15 @@ void DolphinDetailsView::dragEnterEvent(QDragEnterEvent* event)
|
||||||
m_dragging = true;
|
m_dragging = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DolphinDetailsView::dragLeaveEvent(QDragLeaveEvent* event)
|
||||||
|
{
|
||||||
|
QTreeView::dragLeaveEvent(event);
|
||||||
|
|
||||||
|
// TODO: remove this code when the issue #160611 is solved in Qt 4.4
|
||||||
|
m_dragging = false;
|
||||||
|
setDirtyRegion(m_dropRect);
|
||||||
|
}
|
||||||
|
|
||||||
void DolphinDetailsView::dragMoveEvent(QDragMoveEvent* event)
|
void DolphinDetailsView::dragMoveEvent(QDragMoveEvent* event)
|
||||||
{
|
{
|
||||||
QTreeView::dragMoveEvent(event);
|
QTreeView::dragMoveEvent(event);
|
||||||
|
|
|
@ -52,6 +52,7 @@ protected:
|
||||||
virtual void mouseMoveEvent(QMouseEvent* event);
|
virtual void mouseMoveEvent(QMouseEvent* event);
|
||||||
virtual void mouseReleaseEvent(QMouseEvent* event);
|
virtual void mouseReleaseEvent(QMouseEvent* event);
|
||||||
virtual void dragEnterEvent(QDragEnterEvent* event);
|
virtual void dragEnterEvent(QDragEnterEvent* event);
|
||||||
|
virtual void dragLeaveEvent(QDragLeaveEvent* event);
|
||||||
virtual void dragMoveEvent(QDragMoveEvent* event);
|
virtual void dragMoveEvent(QDragMoveEvent* event);
|
||||||
virtual void dropEvent(QDropEvent* event);
|
virtual void dropEvent(QDropEvent* event);
|
||||||
virtual void paintEvent(QPaintEvent* event);
|
virtual void paintEvent(QPaintEvent* event);
|
||||||
|
|
|
@ -134,6 +134,15 @@ void DolphinIconsView::dragEnterEvent(QDragEnterEvent* event)
|
||||||
m_dragging = true;
|
m_dragging = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DolphinIconsView::dragLeaveEvent(QDragLeaveEvent* event)
|
||||||
|
{
|
||||||
|
KListView::dragLeaveEvent(event);
|
||||||
|
|
||||||
|
// TODO: remove this code when the issue #160611 is solved in Qt 4.4
|
||||||
|
m_dragging = false;
|
||||||
|
setDirtyRegion(m_dropRect);
|
||||||
|
}
|
||||||
|
|
||||||
void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event)
|
void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event)
|
||||||
{
|
{
|
||||||
KListView::dragMoveEvent(event);
|
KListView::dragMoveEvent(event);
|
||||||
|
|
|
@ -49,6 +49,7 @@ protected:
|
||||||
virtual void mousePressEvent(QMouseEvent* event);
|
virtual void mousePressEvent(QMouseEvent* event);
|
||||||
virtual void mouseReleaseEvent(QMouseEvent* event);
|
virtual void mouseReleaseEvent(QMouseEvent* event);
|
||||||
virtual void dragEnterEvent(QDragEnterEvent* event);
|
virtual void dragEnterEvent(QDragEnterEvent* event);
|
||||||
|
virtual void dragLeaveEvent(QDragLeaveEvent* event);
|
||||||
virtual void dragMoveEvent(QDragMoveEvent* event);
|
virtual void dragMoveEvent(QDragMoveEvent* event);
|
||||||
virtual void dropEvent(QDropEvent* event);
|
virtual void dropEvent(QDropEvent* event);
|
||||||
virtual void paintEvent(QPaintEvent* event);
|
virtual void paintEvent(QPaintEvent* event);
|
||||||
|
|
|
@ -75,6 +75,15 @@ void SidebarTreeView::dragEnterEvent(QDragEnterEvent* event)
|
||||||
m_dragging = true;
|
m_dragging = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SidebarTreeView::dragLeaveEvent(QDragLeaveEvent* event)
|
||||||
|
{
|
||||||
|
QTreeView::dragLeaveEvent(event);
|
||||||
|
|
||||||
|
// TODO: remove this code when the issue #160611 is solved in Qt 4.4
|
||||||
|
m_dragging = false;
|
||||||
|
setDirtyRegion(m_dropRect);
|
||||||
|
}
|
||||||
|
|
||||||
void SidebarTreeView::dragMoveEvent(QDragMoveEvent* event)
|
void SidebarTreeView::dragMoveEvent(QDragMoveEvent* event)
|
||||||
{
|
{
|
||||||
QTreeView::dragMoveEvent(event);
|
QTreeView::dragMoveEvent(event);
|
||||||
|
|
|
@ -47,6 +47,7 @@ signals:
|
||||||
protected:
|
protected:
|
||||||
virtual bool event(QEvent* event);
|
virtual bool event(QEvent* event);
|
||||||
virtual void dragEnterEvent(QDragEnterEvent* event);
|
virtual void dragEnterEvent(QDragEnterEvent* event);
|
||||||
|
virtual void dragLeaveEvent(QDragLeaveEvent* event);
|
||||||
virtual void dragMoveEvent(QDragMoveEvent* event);
|
virtual void dragMoveEvent(QDragMoveEvent* event);
|
||||||
virtual void dropEvent(QDropEvent* event);
|
virtual void dropEvent(QDropEvent* event);
|
||||||
virtual void paintEvent(QPaintEvent* event);
|
virtual void paintEvent(QPaintEvent* event);
|
||||||
|
|
Loading…
Reference in a new issue