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) {
emit accountSettingsUpdated();
}
QString AccountSettingsModel::getPrimaryDisplayname () const {
QString AccountSettingsModel::getPrimaryDisplayName () const {
return ::Utils::linphoneStringToQString(
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::Address> primary = core->getPrimaryContactParsed();
......
......@@ -37,7 +37,7 @@ class AccountSettingsModel : public QObject {
Q_PROPERTY(RegistrationState registrationState READ getRegistrationState NOTIFY accountSettingsUpdated);
// 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 primarySipAddress READ getPrimarySipAddress NOTIFY accountSettingsUpdated);
......@@ -90,8 +90,8 @@ private:
QString getPrimaryUsername () const;
void setPrimaryUsername (const QString &username);
QString getPrimaryDisplayname () const;
void setPrimaryDisplayname (const QString &displayName);
QString getPrimaryDisplayName () const;
void setPrimaryDisplayName (const QString &displayName);
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