[LyX/master] Restrict Adv. Search pane to sides and floating (#12982)

Juergen Spitzmueller spitz at lyx.org
Sun Jan 14 09:07:41 UTC 2024


commit 153be65d14aa077944617cba5cd60e01e589f518
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sun Jan 14 11:34:05 2024 +0100

    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).
---
 src/frontends/qt/FindAndReplace.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/FindAndReplace.cpp b/src/frontends/qt/FindAndReplace.cpp
index f78700b..782ea48 100644
--- a/src/frontends/qt/FindAndReplace.cpp
+++ b/src/frontends/qt/FindAndReplace.cpp
@@ -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)));
 }
 
 


More information about the lyx-cvs mailing list