mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-29 01:39:19 +00:00
fix(ui/views/App/Main/About): use Qt.application.version instead of App.version
This commit is contained in:
parent
2acb7b8845
commit
3c66702873
3 changed files with 2 additions and 12 deletions
|
|
@ -63,7 +63,7 @@ inline bool installLocale (App &app, QTranslator &translator, const QLocale &loc
|
|||
}
|
||||
|
||||
App::App (int &argc, char *argv[]) : SingleApplication(argc, argv, true) {
|
||||
setApplicationVersion("4.0");
|
||||
setApplicationVersion(LINPHONE_VERSION);
|
||||
setWindowIcon(QIcon(WINDOW_ICON_PATH));
|
||||
|
||||
// List available locales.
|
||||
|
|
@ -257,12 +257,6 @@ bool App::hasFocus () const {
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
QString App::getVersion () const {
|
||||
return ::Utils::linphoneStringToQString(LINPHONE_VERSION);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#define registerSharedSingletonType(TYPE, NAME, METHOD) qmlRegisterSingletonType<TYPE>( \
|
||||
"Linphone", 1, 0, NAME, \
|
||||
[](QQmlEngine *, QJSEngine *) -> QObject *{ \
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ class DefaultTranslator;
|
|||
class App : public SingleApplication {
|
||||
Q_OBJECT;
|
||||
|
||||
Q_PROPERTY(QString version READ getVersion CONSTANT);
|
||||
|
||||
Q_PROPERTY(QString configLocale READ getConfigLocale WRITE setConfigLocale NOTIFY configLocaleChanged);
|
||||
Q_PROPERTY(QString locale READ getLocale CONSTANT);
|
||||
Q_PROPERTY(QVariantList availableLocales READ getAvailableLocales CONSTANT);
|
||||
|
|
@ -78,8 +76,6 @@ signals:
|
|||
void configLocaleChanged (const QString &locale);
|
||||
|
||||
private:
|
||||
QString getVersion () const;
|
||||
|
||||
void registerTypes ();
|
||||
void setTrayIcon ();
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ DialogPlus {
|
|||
color: AboutStyle.versionsBlock.appVersion.color
|
||||
elide: Text.ElideRight
|
||||
font.pointSize: AboutStyle.versionsBlock.appVersion.fontSize
|
||||
text: 'Linphone Desktop ' + App.version
|
||||
text: 'Linphone Desktop ' + Qt.application.version
|
||||
|
||||
height: parent.height / 2
|
||||
width: parent.width
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue