Restrict Adv. Search pane to sides and floating (#12982)

The horizontal reordering for bottom and top is too broken.

This needs some major investigation (probably for 2.5).
This commit is contained in:
Juergen Spitzmueller 2024-01-14 11:34:05 +01:00
parent 3b7f6d614d
commit 153be65d14

View File

@ -664,13 +664,16 @@ FindAndReplace::FindAndReplace(GuiView & parent,
widget_ = new FindAndReplaceWidget(parent);
setWidget(widget_);
setFocusProxy(widget_);
// FIXME: Allow all areas once the dialog re-orientation is fixed
setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::NoDockWidgetArea);
#ifdef Q_OS_MAC
// On Mac show and floating
setFloating(true);
#endif
connect(this, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)),
widget_, SLOT(dockLocationChanged(Qt::DockWidgetArea)));
// FIXME: uncomment once the dialog re-orientation is fixed
// connect(this, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)),
// widget_, SLOT(dockLocationChanged(Qt::DockWidgetArea)));
}