From: Jean-Marc Lasgouttes Date: Wed, 28 Feb 2024 15:58:35 +0000 (+0100) Subject: Fix compilation on ubuntu 18.04 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=23105b2eddd5bb547f3a960c63dc05a8b69a4e28;p=features.git 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. --- 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);