]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/DockView.cpp
Properly scale some icons for HiDPI (#12695)
[lyx.git] / src / frontends / qt / DockView.cpp
index de9a51c78f6f89490ed3fc7e22874e8ac581512b..d6ba3c0ba913eb8d444a01e6ffd4115dd9609ed2 100644 (file)
@@ -12,6 +12,9 @@
 #include <config.h>
 
 #include "DockView.h"
+#include "GuiView.h"
+
+#include <QKeyEvent>
 
 
 namespace lyx {
@@ -28,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);
 }