Skip to content

Commit

Permalink
Merge pull request #3231 from softins/qt-version-display
Browse files Browse the repository at this point in the history
Show both build and runtime versions of Qt
  • Loading branch information
softins authored Feb 12, 2024
2 parents 684c0c3 + 5006a05 commit 79d3284
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:" ) + "<p>" +
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)" ) +
", <i><a href=\"https://www.qt.io\">https://www.qt.io</a></i>"
"</p>"
"<p>"
Expand Down Expand Up @@ -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 *** <https://www.qt.io>";
strVersionText += "\n *** ";
strVersionText += "\n *** Opus Interactive Audio Codec";
Expand Down

0 comments on commit 79d3284

Please sign in to comment.