Commit 1bb578b2 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Re-run clang-format

parent e4211272
......@@ -73,7 +73,8 @@ void AccountServiceToggleJob::start()
if (account) {
Accounts::Service service = accountsManager->service(d->serviceId);
if (!service.isValid()) {
// qWarning() << "Looks like we might have been given a name instead of an ID for the service, which will be expected when using the Ubuntu AccountServiceModel, which only gives you the name";
// qWarning() << "Looks like we might have been given a name instead of an ID for the service, which will be expected when using the Ubuntu
// AccountServiceModel, which only gives you the name";
const auto services = account->services();
for (const Accounts::Service &aService : services) {
if (aService.displayName() == d->serviceId) {
......
......@@ -49,8 +49,14 @@ ServicesModel::~ServicesModel()
QHash<int, QByteArray> ServicesModel::roleNames() const
{
static QHash<int, QByteArray> roles{
{NameRole, "name"}, {DescriptionRole, "description"}, {DisplayNameRole, "displayName"}, {ServiceTypeRole, "servieType"}, {ProviderNameRole, "providerName"}, {IconNameRole, "iconName"}, {TagsRole, "tags"}, {EnabledRole, "enabled"}};
static QHash<int, QByteArray> roles{{NameRole, "name"},
{DescriptionRole, "description"},
{DisplayNameRole, "displayName"},
{ServiceTypeRole, "servieType"},
{ProviderNameRole, "providerName"},
{IconNameRole, "iconName"},
{TagsRole, "tags"},
{EnabledRole, "enabled"}};
return roles;
}
......
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