Commit e247b46b authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent c27a8b7a
...@@ -40,6 +40,7 @@ class App : public SingleApplication { ...@@ -40,6 +40,7 @@ class App : public SingleApplication {
Q_PROPERTY(QString configLocale READ getConfigLocale WRITE setConfigLocale NOTIFY configLocaleChanged); Q_PROPERTY(QString configLocale READ getConfigLocale WRITE setConfigLocale NOTIFY configLocaleChanged);
Q_PROPERTY(QString locale READ getLocale CONSTANT); Q_PROPERTY(QString locale READ getLocale CONSTANT);
Q_PROPERTY(QVariantList availableLocales READ getAvailableLocales CONSTANT); Q_PROPERTY(QVariantList availableLocales READ getAvailableLocales CONSTANT);
Q_PROPERTY(QString qtVersion READ getQtVersion CONSTANT);
public: public:
App (int &argc, char *argv[]); App (int &argc, char *argv[]);
...@@ -70,7 +71,6 @@ public: ...@@ -70,7 +71,6 @@ public:
} }
Q_INVOKABLE static void smartShowWindow (QQuickWindow *window); Q_INVOKABLE static void smartShowWindow (QQuickWindow *window);
Q_INVOKABLE static QString convertUrlToLocalPath (const QUrl &url); Q_INVOKABLE static QString convertUrlToLocalPath (const QUrl &url);
public slots: public slots:
...@@ -94,6 +94,10 @@ private: ...@@ -94,6 +94,10 @@ private:
void openAppAfterInit (); void openAppAfterInit ();
static QString getQtVersion () {
return qVersion();
}
QCommandLineParser mParser; QCommandLineParser mParser;
QVariantList mAvailableLocales; QVariantList mAvailableLocales;
......
...@@ -52,7 +52,7 @@ DialogPlus { ...@@ -52,7 +52,7 @@ DialogPlus {
color: AboutStyle.versionsBlock.appVersion.color color: AboutStyle.versionsBlock.appVersion.color
elide: Text.ElideRight elide: Text.ElideRight
font.pointSize: AboutStyle.versionsBlock.appVersion.fontSize 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 height: parent.height / 2
width: parent.width width: parent.width
......
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