Skip to content

Commit 9a02f84

Browse files
authored
Merge pull request #349 from zomfg/feature/about-qt-version
build time Qt version in About tab
2 parents 5f88f31 + 1fec448 commit 9a02f84

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Software/src/SettingsWindow.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,18 +2043,20 @@ void SettingsWindow::versionsUpdate()
20432043
DEBUG_LOW_LEVEL << Q_FUNC_INFO;
20442044

20452045
// use template to construct version string
2046-
QString versionsTemplate = tr("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\"> <html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\"> p, li { white-space: pre-wrap; } </style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\"> <p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">software <span style=\" font-size:8pt; font-weight:600;\">%1</span><span style=\" font-size:8pt;\"> (revision </span><a href=\"https://github.com/psieg/Lightpack/commit/%2\"><span style=\" font-size:8pt; text-decoration: underline; color:#0000ff;\">%2</span></a><span style=\" font-size:8pt;\">), firmware <b>%3</b></span></p></body></html>");
2046+
QString versionsTemplate = tr("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\"> <html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\"> p, li { white-space: pre-wrap; } </style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\"> <p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">software <span style=\" font-size:8pt; font-weight:600;\">%1</span><span style=\" font-size:8pt;\"> (rev </span><a href=\"https://github.com/psieg/Lightpack/commit/%2\"><span style=\" font-size:8pt; text-decoration: underline; color:#0000ff;\">%2</span></a><span style=\" font-size:8pt;\">, Qt %4), firmware <b>%3</b></span></p></body></html>");
20472047

20482048
#ifdef GIT_REVISION
20492049
versionsTemplate = versionsTemplate.arg(
20502050
QApplication::applicationVersion(),
20512051
GIT_REVISION,
2052-
fimwareVersion );
2052+
fimwareVersion,
2053+
QT_VERSION_STR);
20532054
#else
20542055
versionsTemplate = versionsTemplate.arg(
20552056
QApplication::applicationVersion(),
20562057
"unknown",
2057-
fimwareVersion );
2058+
fimwareVersion,
2059+
QT_VERSION_STR);
20582060
versionsTemplate.remove(QRegExp(" \\([^()]+unknown[^()]+\\)"));
20592061
#endif
20602062

0 commit comments

Comments
 (0)