Commit a3a16ab4 authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈
Browse files

Adjust naming of multiple accounts role to be more expected

parent e495fdb8
...@@ -56,7 +56,7 @@ QHash<int, QByteArray> ProvidersModel::roleNames() const ...@@ -56,7 +56,7 @@ QHash<int, QByteArray> ProvidersModel::roleNames() const
{DisplayNameRole, "displayName"}, {DisplayNameRole, "displayName"},
{DescriptionRole, "description"}, {DescriptionRole, "description"},
{IconNameRole, "iconName"}, {IconNameRole, "iconName"},
{SupportsMultipleLoginsRole, "supportsMultipleLogins"}, {SupportsMultipleAccountsRole, "supportsMultipleAccounts"},
{AccountsCountRole, "accountsCount"} {AccountsCountRole, "accountsCount"}
}; };
return roleNames; return roleNames;
...@@ -89,7 +89,7 @@ QVariant ProvidersModel::data(const QModelIndex& index, int role) const ...@@ -89,7 +89,7 @@ QVariant ProvidersModel::data(const QModelIndex& index, int role) const
case IconNameRole: case IconNameRole:
data.setValue(provider.iconName()); data.setValue(provider.iconName());
break; break;
case SupportsMultipleLoginsRole: case SupportsMultipleAccountsRole:
data.setValue(!provider.isSingleAccount()); data.setValue(!provider.isSingleAccount());
break; break;
case AccountsCountRole: case AccountsCountRole:
......
...@@ -35,7 +35,7 @@ class KACCOUNTS_EXPORT ProvidersModel : public QAbstractListModel ...@@ -35,7 +35,7 @@ class KACCOUNTS_EXPORT ProvidersModel : public QAbstractListModel
DisplayNameRole, ///< The human-readable name for this provider DisplayNameRole, ///< The human-readable name for this provider
DescriptionRole, ///< A (usually single sentence) description of this provider DescriptionRole, ///< A (usually single sentence) description of this provider
IconNameRole, ///< The name of the icon to be used for this provider (an XDG Icon Spec style name) IconNameRole, ///< The name of the icon to be used for this provider (an XDG Icon Spec style name)
SupportsMultipleLoginsRole, ///< Whether or not this provider supports multiple simultaneous accounts SupportsMultipleAccountsRole, ///< Whether or not this provider supports multiple simultaneous accounts
AccountsCountRole ///< The number of accounts which already exist for this provider AccountsCountRole ///< The number of accounts which already exist for this provider
}; };
explicit ProvidersModel(QObject* parent = nullptr); explicit ProvidersModel(QObject* parent = nullptr);
......
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