]> git.lyx.org Git - lyx.git/commitdiff
Fix compilation on ubuntu 18.04
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 28 Feb 2024 15:58:35 +0000 (16:58 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 28 Feb 2024 16:00:54 +0000 (17:00 +0100)
One of Qt 5.9 or gcc 7.5 does not like the or-ing of several enum flags.

src/frontends/qt/FindAndReplace.cpp

index 782ea48f9fe43deaf39834ffbc67a041b8f0c67b..8c8ad115bd1ad69495c569cf1b1626024b49de56 100644 (file)
@@ -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);