src/main.cpp

changeset 279
cd70c845563a
parent 278
304386ff96a4
child 281
afed72b544f0
equal deleted inserted replaced
278:304386ff96a4 279:cd70c845563a
368 static void about(QWidget* parent) 368 static void about(QWidget* parent)
369 { 369 {
370 QDialog dialog{parent}; 370 QDialog dialog{parent};
371 Ui_About ui; 371 Ui_About ui;
372 ui.setupUi(&dialog); 372 ui.setupUi(&dialog);
373 ui.textBrowser->setHtml( 373 for (QTextBrowser* browser : dialog.findChildren<QTextBrowser*>()) {
374 ui.textBrowser->toHtml() 374 browser->setHtml(
375 .replace("%APPNAME%", APPNAME) 375 browser->toHtml()
376 .replace("%COPYRIGHT%", COPYRIGHT) 376 .replace("%APPNAME%", APPNAME)
377 .replace("%VERSION%", detailedVersionString()) 377 .replace("%COPYRIGHT%", COPYRIGHT)
378 .replace("%REVDATE%", revisionDateString()) 378 .replace("%QTVERSION%", qVersion())
379 .replace("%QTVERSION%", qVersion()) 379 .replace("%VERSION%", detailedVersionString())
380 ); 380 .replace("%REVDATE%", revisionDateString())
381 .replace("%COMPILER_ID%", COMPILER_ID)
382 .replace("%COMPILER_VERSION%", COMPILER_VERSION)
383 .replace("%COMPILER_FLAGS%", COMPILER_FLAGS)
384 .replace("%COMPILER_CPU%", COMPILER_CPU)
385 .replace("%COMPILER_SYSTEM%", COMPILER_SYSTEM)
386 );
387 }
381 dialog.setWindowTitle(QObject::tr("About %1").arg(APPNAME)); 388 dialog.setWindowTitle(QObject::tr("About %1").arg(APPNAME));
382 dialog.exec(); 389 dialog.exec();
383 } 390 }
384 391
385 int main(int argc, char *argv[]) 392 int main(int argc, char *argv[])

mercurial