diff options
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/DnDTabBar.h | 2 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.h | 4 |
2 files changed, 3 insertions, 3 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 diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.h b/src-qt5/desktop-utils/lumina-textedit/MainUI.h index 963443b6..6e5d2d23 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.h +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.h @@ -76,12 +76,12 @@ private slots: void closeFindReplace(); void openFind(); void openReplace(); - + void findNext(); void findPrev(); void replaceOne(); void replaceAll(); - + protected: void resizeEvent(QResizeEvent *ev){ settings->setValue("lastSize", ev->size()); |