Commit 2ea6a8f1 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Add Qt versions in the about dialog.

parent aeb57f2a
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <QFile> #include <QFile>
#include <QString> #include <QString>
#include <QPlainTextEdit> #include <QPlainTextEdit>
#include <QtGlobal>
#include "About.h" #include "About.h"
About::About( QWidget *parent ) : About::About( QWidget *parent ) :
...@@ -37,6 +38,9 @@ About::About( QWidget *parent ) : ...@@ -37,6 +38,9 @@ About::About( QWidget *parent ) :
m_ui.labelVersion->setText( m_ui.labelVersion->setText(
m_ui.labelVersion->text().arg( qApp->applicationVersion() ) m_ui.labelVersion->text().arg( qApp->applicationVersion() )
); );
m_ui.labelQtVersion->setText(
m_ui.labelQtVersion->text().arg( qVersion(), QT_VERSION_STR )
);
connect( qApp, SIGNAL( aboutToQuit() ), this, SLOT( deleteLater() ) ); connect( qApp, SIGNAL( aboutToQuit() ), this, SLOT( deleteLater() ) );
} }
......
...@@ -86,7 +86,7 @@ p, li { white-space: pre-wrap; } ...@@ -86,7 +86,7 @@ p, li { white-space: pre-wrap; }
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="3" column="0">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
...@@ -99,6 +99,13 @@ p, li { white-space: pre-wrap; } ...@@ -99,6 +99,13 @@ p, li { white-space: pre-wrap; }
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="2" column="0">
<widget class="QLabel" name="labelQtVersion">
<property name="text">
<string>Runtime Qt version: %1 (compiled against %2)</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="Authors"> <widget class="QWidget" name="Authors">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment