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); widget_ = new FindAndReplaceWidget(parent);
setWidget(widget_); setWidget(widget_);
setFocusProxy(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 #ifdef Q_OS_MAC
// On Mac show and floating // On Mac show and floating
setFloating(true); setFloating(true);
#endif #endif
connect(this, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)), // FIXME: uncomment once the dialog re-orientation is fixed
widget_, SLOT(dockLocationChanged(Qt::DockWidgetArea))); // connect(this, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)),
// widget_, SLOT(dockLocationChanged(Qt::DockWidgetArea)));
} }