aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-08-30 15:07:31 -0400
committerKen Moore <ken@ixsystems.com>2017-08-30 15:07:31 -0400
commitee845ef48c49f6182c2f04ea2095cdc7ed1c895b (patch)
tree9867ed5c07c30aacaee224d4b8877f4a2bb8797a /src-qt5
parentA bit more work on compositing and such (mostly commented out) - still not wo... (diff)
downloadlumina-ee845ef48c49f6182c2f04ea2095cdc7ed1c895b.tar.gz
lumina-ee845ef48c49f6182c2f04ea2095cdc7ed1c895b.tar.bz2
lumina-ee845ef48c49f6182c2f04ea2095cdc7ed1c895b.zip
Quick update to lumina-textedit:
Make the tabs start dragging after pulling the tab out of the entire TabWidget, not just the tab bar itself.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/DnDTabBar.h2
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/MainUI.h4
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());
bgstack15