summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-11-13 18:13:50 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-11-13 18:13:50 (GMT)
commitb26ec711d6b13578c283ab41ef6d46523ec77777 (patch)
tree924ccf8e9fa69d443dc9862045625c9efee05399 /addon/doxywizard
parentefb3eb758f443ba8aebda3665b725a4e0dd1196d (diff)
downloadDoxygen-b26ec711d6b13578c283ab41ef6d46523ec77777.zip
Doxygen-b26ec711d6b13578c283ab41ef6d46523ec77777.tar.gz
Doxygen-b26ec711d6b13578c283ab41ef6d46523ec77777.tar.bz2
Show QT version in doxywizard
When debugging problems in respect to the doxywizard it always good to know with which version the doxywizard has been build a which runtime version is being used(especially when not linking statically)
Diffstat (limited to 'addon/doxywizard')
-rwxr-xr-xaddon/doxywizard/doxywizard.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp
index a06459c..00eabac 100755
--- a/addon/doxywizard/doxywizard.cpp
+++ b/addon/doxywizard/doxywizard.cpp
@@ -266,7 +266,15 @@ void MainWindow::about()
QTextStream t(&msg,QIODevice::WriteOnly);
t << QString::fromLatin1("<qt><center>A tool to configure and run doxygen version ")+
QString::fromLatin1(getDoxygenVersion())+
- QString::fromLatin1(" on your source files.</center><p><br>"
+ QString::fromLatin1(" on your source files.</center>")+
+ QString::fromLatin1("<center>(Created with Qt version ")+
+ QString::fromLatin1(QT_VERSION_STR);
+ if (qstrcmp(qVersion(),QT_VERSION_STR))
+ {
+ t << QString::fromLatin1(", running with ")+
+ QString::fromLatin1(qVersion());
+ }
+ t << QString::fromLatin1(")</center><p><br>"
"<center>Written by<br> Dimitri van Heesch<br>&copy; 2000-2019</center><p>"
"</qt>");
QMessageBox::about(this,tr("Doxygen GUI"),msg);
@@ -774,7 +782,14 @@ int main(int argc,char **argv)
else if (!qstrcmp(argv[1],"--version"))
{
QMessageBox msgBox;
- msgBox.setText(QString::fromLatin1("Doxywizard version: %1").arg(QString::fromLatin1(getFullVersion())));
+ if (!qstrcmp(qVersion(),QT_VERSION_STR))
+ {
+ msgBox.setText(QString::fromLatin1("Doxywizard version: %1, Qt version: %2").arg(QString::fromLatin1(getFullVersion()),QString::fromLatin1(QT_VERSION_STR)));
+ }
+ else
+ {
+ msgBox.setText(QString::fromLatin1("Doxywizard version: %1, Qt version: created with %2, running with %3").arg(QString::fromLatin1(getFullVersion()),QString::fromLatin1(QT_VERSION_STR),QString::fromLatin1(qVersion())));
+ }
msgBox.exec();
exit(0);
}