[LyX/master] Fix compilation on ubuntu 18.04

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Feb 28 16:01:04 UTC 2024


commit 23105b2eddd5bb547f3a960c63dc05a8b69a4e28
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Wed Feb 28 16:58:35 2024 +0100

    Fix compilation on ubuntu 18.04
    
    One of Qt 5.9 or gcc 7.5 does not like the or-ing of several enum flags.
---
 src/frontends/qt/FindAndReplace.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontends/qt/FindAndReplace.cpp b/src/frontends/qt/FindAndReplace.cpp
index 782ea48f9f..8c8ad115bd 100644
--- a/src/frontends/qt/FindAndReplace.cpp
+++ b/src/frontends/qt/FindAndReplace.cpp
@@ -665,7 +665,7 @@ FindAndReplace::FindAndReplace(GuiView & parent,
 	setWidget(widget_);
 	setFocusProxy(widget_);
 	// FIXME: Allow all areas once the dialog re-orientation is fixed
-	setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::NoDockWidgetArea);
+	setAllowedAreas(Qt::DockWidgetAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea));
 #ifdef Q_OS_MAC
 	// On Mac show and floating
 	setFloating(true);


More information about the lyx-cvs mailing list