]> 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 b0f0be4cb5b1a26f2f6e4c9565d1af70f3151857..d6ba3c0ba913eb8d444a01e6ffd4115dd9609ed2 100644 (file)
@@ -14,6 +14,8 @@
 #include "DockView.h"
 #include "GuiView.h"
 
+#include <QKeyEvent>
+
 
 namespace lyx {
 namespace frontend {
@@ -29,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);
 }