[vlmc-devel] commit: Add Qt versions in the about dialog. (Ludovic Fauvet )
git at videolan.org
git at videolan.org
Sun Mar 21 20:53:58 CET 2010
vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Sun Mar 21 20:47:14 2010 +0100| [2ea6a8f1236e092d3b40d38047f6db4aa5b9f212] | committer: Ludovic Fauvet
Add Qt versions in the about dialog.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2ea6a8f1236e092d3b40d38047f6db4aa5b9f212
---
src/Gui/About.cpp | 4 ++++
src/Gui/ui/About.ui | 9 ++++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/Gui/About.cpp b/src/Gui/About.cpp
index 6e7dbb8..38f490a 100644
--- a/src/Gui/About.cpp
+++ b/src/Gui/About.cpp
@@ -24,6 +24,7 @@
#include <QFile>
#include <QString>
#include <QPlainTextEdit>
+#include <QtGlobal>
#include "About.h"
About::About( QWidget *parent ) :
@@ -37,6 +38,9 @@ About::About( QWidget *parent ) :
m_ui.labelVersion->setText(
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() ) );
}
diff --git a/src/Gui/ui/About.ui b/src/Gui/ui/About.ui
index c8f36fb..1a04596 100644
--- a/src/Gui/ui/About.ui
+++ b/src/Gui/ui/About.ui
@@ -86,7 +86,7 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
- <item row="1" column="0">
+ <item row="3" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
@@ -99,6 +99,13 @@ p, li { white-space: pre-wrap; }
</property>
</spacer>
</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>
</widget>
<widget class="QWidget" name="Authors">
More information about the Vlmc-devel
mailing list