[LyX/master] Remove workaround that is not needed anymore with Qt 5.12

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Oct 23 14:31:40 UTC 2024


commit 8837f8ca8ca5e1d87a846871aa0860af0dbf6ae5
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Wed Oct 23 13:37:29 2024 +0200

    Remove workaround that is not needed anymore with Qt 5.12
    
    See discussion at
    https://stackoverflow.com/questions/10755058/qflags-enum-type-conversion-fails-all-of-a-sudden
---
 src/frontends/qt/GuiLyXFiles.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/frontends/qt/GuiLyXFiles.cpp b/src/frontends/qt/GuiLyXFiles.cpp
index a93000c3c6..ab30295eea 100644
--- a/src/frontends/qt/GuiLyXFiles.cpp
+++ b/src/frontends/qt/GuiLyXFiles.cpp
@@ -613,12 +613,7 @@ void GuiLyXFiles::passParams(string const & data)
 
 void GuiLyXFiles::selectItem(QString const & item)
 {
-	/* Using an intermediary variable flags is needed up to at least
-	 * Qt 5.5 because of a subtle namespace issue. See:
-	 *   https://stackoverflow.com/questions/10755058/qflags-enum-type-conversion-fails-all-of-a-sudden
-	 * for details.*/
-	Qt::MatchFlags const flags(Qt::MatchExactly|Qt::MatchRecursive);
-	QList<QTreeWidgetItem *> twi = filesLW->findItems(item, flags);
+	QList<QTreeWidgetItem *> twi = filesLW->findItems(item, Qt::MatchExactly | Qt::MatchRecursive);
 	if (!twi.isEmpty())
 		twi.first()->setSelected(true);
 }


More information about the lyx-cvs mailing list