Make Dock Widgets SubWindows in general (#12170)

This commit is contained in:
Juergen Spitzmueller 2021-05-06 17:56:53 +02:00
parent 67762aaf08
commit 6431a9ab13
2 changed files with 5 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}