diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/DnDTabBar.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/DnDTabBar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/DnDTabBar.h b/src-qt5/desktop-utils/lumina-textedit/DnDTabBar.h index e7f767fb..0979cf82 100644 --- a/src-qt5/desktop-utils/lumina-textedit/DnDTabBar.h +++ b/src-qt5/desktop-utils/lumina-textedit/DnDTabBar.h @@ -59,7 +59,7 @@ protected: virtual void mouseMoveEvent(QMouseEvent *ev){ //qDebug() << "Got Move Event:" << this->geometry() << ev->pos(); - if(selTab>=0 && !this->geometry().contains(ev->pos()) ){ + if(selTab>=0 && !this->parentWidget()->geometry().contains( this->mapToParent(ev->pos())) ){ //qDebug() << "Starting Drag:" << this->geometry() << ev->pos(); QString tab = selTab; this->mouseReleaseEvent(new QMouseEvent(QEvent::MouseButtonRelease, ev->pos(), ev->button(), ev->buttons(), ev->modifiers()) ); //will reset selTab |