From: Juergen Spitzmueller Date: Sat, 15 Aug 2020 14:06:56 +0000 (+0200) Subject: Fix deprecation warning X-Git-Tag: lyx-2.4.0dev-acb2ca7b~378 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cba24bb642606bbb8c890b21e799d9f225ad9a3d;p=lyx.git Fix deprecation warning --- diff --git a/src/frontends/qt/GuiAbout.cpp b/src/frontends/qt/GuiAbout.cpp index 3c874df671..8e720df6b3 100644 --- a/src/frontends/qt/GuiAbout.cpp +++ b/src/frontends/qt/GuiAbout.cpp @@ -203,12 +203,27 @@ static QString buildinfo() QString res; QTextStream out(&res); out << "LyX " << lyx_version - << " (" << lyx_release_date << ")" << endl; + << " (" << lyx_release_date << ")" +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) + << Qt::endl; +#else + << endl; +#endif if (std::string(lyx_git_commit_hash) != "none") out << qt_(" Git commit hash ") - << QString(lyx_git_commit_hash).left(8) << endl; - - out << lyx_version_info << endl; + << QString(lyx_git_commit_hash).left(8) +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) + << Qt::endl; +#else + << endl; +#endif + + out << lyx_version_info +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) + << Qt::endl; +#else + << endl; +#endif return res; }