feat(ui/views/App/Main/About): display the Qt version

This commit is contained in:
Ronan Abhamon 2017-05-05 12:05:26 +02:00
parent c27a8b7ac8
commit e247b46b73
2 changed files with 6 additions and 2 deletions

View file

@ -40,6 +40,7 @@ class App : public SingleApplication {
Q_PROPERTY(QString configLocale READ getConfigLocale WRITE setConfigLocale NOTIFY configLocaleChanged);
Q_PROPERTY(QString locale READ getLocale CONSTANT);
Q_PROPERTY(QVariantList availableLocales READ getAvailableLocales CONSTANT);
Q_PROPERTY(QString qtVersion READ getQtVersion CONSTANT);
public:
App (int &argc, char *argv[]);
@ -70,7 +71,6 @@ public:
}
Q_INVOKABLE static void smartShowWindow (QQuickWindow *window);
Q_INVOKABLE static QString convertUrlToLocalPath (const QUrl &url);
public slots:
@ -94,6 +94,10 @@ private:
void openAppAfterInit ();
static QString getQtVersion () {
return qVersion();
}
QCommandLineParser mParser;
QVariantList mAvailableLocales;

View file

@ -52,7 +52,7 @@ DialogPlus {
color: AboutStyle.versionsBlock.appVersion.color
elide: Text.ElideRight
font.pointSize: AboutStyle.versionsBlock.appVersion.fontSize
text: 'Linphone Desktop ' + Qt.application.version
text: 'Linphone Desktop Qt' + App.qtVersion + ' - ' + Qt.application.version
height: parent.height / 2
width: parent.width