Commit 4d4bcf85 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/components/settings/AccountSettingsModel): use `primaryDisplayName`...

fix(src/components/settings/AccountSettingsModel): use `primaryDisplayName` instead of `primaryDisplayname`
parent f809c5c4
...@@ -240,13 +240,13 @@ void AccountSettingsModel::setPrimaryUsername (const QString &username) { ...@@ -240,13 +240,13 @@ void AccountSettingsModel::setPrimaryUsername (const QString &username) {
emit accountSettingsUpdated(); emit accountSettingsUpdated();
} }
QString AccountSettingsModel::getPrimaryDisplayname () const { QString AccountSettingsModel::getPrimaryDisplayName () const {
return ::Utils::linphoneStringToQString( return ::Utils::linphoneStringToQString(
CoreManager::getInstance()->getCore()->getPrimaryContactParsed()->getDisplayName() CoreManager::getInstance()->getCore()->getPrimaryContactParsed()->getDisplayName()
); );
} }
void AccountSettingsModel::setPrimaryDisplayname (const QString &displayName) { void AccountSettingsModel::setPrimaryDisplayName (const QString &displayName) {
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore(); shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
shared_ptr<linphone::Address> primary = core->getPrimaryContactParsed(); shared_ptr<linphone::Address> primary = core->getPrimaryContactParsed();
......
...@@ -37,7 +37,7 @@ class AccountSettingsModel : public QObject { ...@@ -37,7 +37,7 @@ class AccountSettingsModel : public QObject {
Q_PROPERTY(RegistrationState registrationState READ getRegistrationState NOTIFY accountSettingsUpdated); Q_PROPERTY(RegistrationState registrationState READ getRegistrationState NOTIFY accountSettingsUpdated);
// Default info. // Default info.
Q_PROPERTY(QString primaryDisplayname READ getPrimaryDisplayname WRITE setPrimaryDisplayname NOTIFY accountSettingsUpdated); Q_PROPERTY(QString primaryDisplayName READ getPrimaryDisplayName WRITE setPrimaryDisplayName NOTIFY accountSettingsUpdated);
Q_PROPERTY(QString primaryUsername READ getPrimaryUsername WRITE setPrimaryUsername NOTIFY accountSettingsUpdated); Q_PROPERTY(QString primaryUsername READ getPrimaryUsername WRITE setPrimaryUsername NOTIFY accountSettingsUpdated);
Q_PROPERTY(QString primarySipAddress READ getPrimarySipAddress NOTIFY accountSettingsUpdated); Q_PROPERTY(QString primarySipAddress READ getPrimarySipAddress NOTIFY accountSettingsUpdated);
...@@ -90,8 +90,8 @@ private: ...@@ -90,8 +90,8 @@ private:
QString getPrimaryUsername () const; QString getPrimaryUsername () const;
void setPrimaryUsername (const QString &username); void setPrimaryUsername (const QString &username);
QString getPrimaryDisplayname () const; QString getPrimaryDisplayName () const;
void setPrimaryDisplayname (const QString &displayName); void setPrimaryDisplayName (const QString &displayName);
QString getPrimarySipAddress () const; QString getPrimarySipAddress () const;
......
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