From 5006a05e4d2794783d7061bac60f3d25a184a5ab Mon Sep 17 00:00:00 2001 From: Tony Mountifield Date: Sat, 10 Feb 2024 17:07:39 +0000 Subject: [PATCH] Show both build and runtime versions of Qt --- src/util.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index aed08ea25b..0111586a81 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -594,7 +594,8 @@ CAboutDlg::CAboutDlg ( QWidget* parent ) : CBaseDlg ( parent ) // libraries used by this compilation txvLibraries->setText ( tr ( "This app uses the following libraries, resources or code snippets:" ) + "

" + - tr ( "Qt cross-platform application framework" ) + QString ( " %1" ).arg ( QT_VERSION_STR ) + + tr ( "Qt cross-platform application framework" ) + QString ( " %1 " ).arg ( QT_VERSION_STR ) + tr ( "(build)" ) + + QString ( ", %1 " ).arg ( qVersion() ) + tr ( "(runtime)" ) + ", https://www.qt.io" "

" "

" @@ -1726,7 +1727,8 @@ QString GetVersionAndNameStr ( const bool bDisplayInGui ) strVersionText += "\n *** " + QCoreApplication::tr ( "This app uses the following libraries, resources or code snippets:" ); strVersionText += "\n *** "; - strVersionText += "\n *** " + QCoreApplication::tr ( "Qt cross-platform application framework" ) + QString ( " %1" ).arg ( QT_VERSION_STR ); + strVersionText += "\n *** " + QCoreApplication::tr ( "Qt cross-platform application framework" ) + QString ( " %1 " ).arg ( QT_VERSION_STR ) + + QCoreApplication::tr ( "(build)" ) + QString ( ", %1 " ).arg ( qVersion() ) + QCoreApplication::tr ( "(runtime)" ); strVersionText += "\n *** "; strVersionText += "\n *** "; strVersionText += "\n *** Opus Interactive Audio Codec";