src/main.cpp

changeset 279
cd70c845563a
parent 278
304386ff96a4
child 281
afed72b544f0
--- a/src/main.cpp	Mon Jun 27 23:58:04 2022 +0300
+++ b/src/main.cpp	Tue Jun 28 00:25:10 2022 +0300
@@ -370,14 +370,21 @@
 	QDialog dialog{parent};
 	Ui_About ui;
 	ui.setupUi(&dialog);
-	ui.textBrowser->setHtml(
-		ui.textBrowser->toHtml()
-		.replace("%APPNAME%", APPNAME)
-		.replace("%COPYRIGHT%", COPYRIGHT)
-		.replace("%VERSION%", detailedVersionString())
-		.replace("%REVDATE%", revisionDateString())
-		.replace("%QTVERSION%", qVersion())
-	);
+	for (QTextBrowser* browser : dialog.findChildren<QTextBrowser*>()) {
+		browser->setHtml(
+			browser->toHtml()
+			.replace("%APPNAME%", APPNAME)
+			.replace("%COPYRIGHT%", COPYRIGHT)
+			.replace("%QTVERSION%", qVersion())
+			.replace("%VERSION%", detailedVersionString())
+			.replace("%REVDATE%", revisionDateString())
+			.replace("%COMPILER_ID%", COMPILER_ID)
+			.replace("%COMPILER_VERSION%", COMPILER_VERSION)
+			.replace("%COMPILER_FLAGS%", COMPILER_FLAGS)
+			.replace("%COMPILER_CPU%", COMPILER_CPU)
+			.replace("%COMPILER_SYSTEM%", COMPILER_SYSTEM)
+		);
+	}
 	dialog.setWindowTitle(QObject::tr("About %1").arg(APPNAME));
 	dialog.exec();
 }

mercurial