commit 6431a9ab1325074f2570c273c15b459cca71c622
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu May 6 17:56:53 2021 +0200

    Make Dock Widgets SubWindows in general (#12170)
---
 src/frontends/qt/DockView.cpp  |    5 +++++
 src/frontends/qt/GuiSearch.cpp |    4 ----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/frontends/qt/DockView.cpp b/src/frontends/qt/DockView.cpp
index c485bcc..d6ba3c0 100644
--- a/src/frontends/qt/DockView.cpp
+++ b/src/frontends/qt/DockView.cpp
@@ -31,6 +31,11 @@ DockView::DockView(GuiView & parent, QString const & name,
        hide();
        connect(&parent, SIGNAL(bufferViewChanged()),
                this, SLOT(onBufferViewChanged()));
+
+       // Make dock widgets sub windows to prevent focusNextPrevChild
+       // (Tab key) switching to the parent rather than to the next
+       // widget in the pane (#12170)
+       setWindowFlags(Qt::SubWindow);
 }
 
 
diff --git a/src/frontends/qt/GuiSearch.cpp b/src/frontends/qt/GuiSearch.cpp
index 9212ddd..32a8fd1 100644
--- a/src/frontends/qt/GuiSearch.cpp
+++ b/src/frontends/qt/GuiSearch.cpp
@@ -126,10 +126,6 @@ GuiSearchWidget::GuiSearchWidget(QWidget * parent)
        replacePB->setEnabled(false);
        replacePrevPB->setEnabled(false);
        replaceallPB->setEnabled(false);
-
-       // Make this a sub window to prevent focusNextPrevChild (Tab)
-       // switching to the parent (#12170)
-       setWindowFlags(Qt::SubWindow);
 }
 
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to