Commit 7f19b349 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Add trailing comma to braced initializers

This has two advantages: It improves the diff when adding a new item and prevents clang-format from formatting them into one line.
parent b7869bf2
......@@ -238,7 +238,7 @@ QHash<int, QByteArray> TimeZoneModel::roleNames() const
{CityRole, "city"},
{CommentRole, "comment"},
{CheckedRole, "checked"},
{IsLocalTimeZoneRole, "isLocalTimeZone"}
{IsLocalTimeZoneRole, "isLocalTimeZone"},
});
}
......
......@@ -52,7 +52,7 @@ QHash<int, QByteArray> BaseModel::roleNames() const
{static_cast<int>(BaseRole::CanRender), QByteArrayLiteral("canRender")},
{static_cast<int>(BaseRole::Category), QByteArrayLiteral("category")},
{static_cast<int>(BaseRole::Status), QByteArrayLiteral("status")},
{static_cast<int>(BaseRole::EffectiveStatus), QByteArrayLiteral("effectiveStatus")}
{static_cast<int>(BaseRole::EffectiveStatus), QByteArrayLiteral("effectiveStatus")},
};
}
......
......@@ -292,6 +292,6 @@ QHash<int, QByteArray> SessionsModel::roleNames() const
{static_cast<int>(Role::DisplayNumber), QByteArrayLiteral("displayNumber")},
{static_cast<int>(Role::VtNumber), QByteArrayLiteral("vtNumber")},
{static_cast<int>(Role::Session), QByteArrayLiteral("session")},
{static_cast<int>(Role::IsTty), QByteArrayLiteral("isTty")}
{static_cast<int>(Role::IsTty), QByteArrayLiteral("isTty")},
};
}
......@@ -110,7 +110,7 @@ QHash<int, QByteArray> ColorsModel::roleNames() const
{ActiveTitleBarBackgroundRole, QByteArrayLiteral("activeTitleBarBackground")},
{ActiveTitleBarForegroundRole, QByteArrayLiteral("activeTitleBarForeground")},
{RemovableRole, QByteArrayLiteral("removable")},
{PendingDeletionRole, QByteArrayLiteral("pendingDeletion")}
{PendingDeletionRole, QByteArrayLiteral("pendingDeletion")},
};
}
......
......@@ -110,7 +110,7 @@ QHash<int, QByteArray> ThemesModel::roleNames() const
{DescriptionRole, QByteArrayLiteral("description")},
{ColorTypeRole, QByteArrayLiteral("colorType")},
{IsLocalRole, QByteArrayLiteral("isLocal")},
{PendingDeletionRole, QByteArrayLiteral("pendingDeletion")}
{PendingDeletionRole, QByteArrayLiteral("pendingDeletion")},
};
}
......
......@@ -28,7 +28,7 @@ IconSizeCategoryModel::IconSizeCategoryModel(QObject *parent)
{QStringLiteral("mainToolbarSize"), I18N_NOOP("Main Toolbar"), QStringLiteral("MainToolbar"), KIconLoader::MainToolbar},
{QStringLiteral("smallSize"), I18N_NOOP("Small Icons"), QStringLiteral("Small"), KIconLoader::Small},
{QStringLiteral("panelSize"), I18N_NOOP("Panel"), QStringLiteral("Panel"), KIconLoader::Panel},
{QStringLiteral("dialogSize"), I18N_NOOP("Dialogs"), QStringLiteral("Dialog"), KIconLoader::Dialog}
{QStringLiteral("dialogSize"), I18N_NOOP("Dialogs"), QStringLiteral("Dialog"), KIconLoader::Dialog},
})
{
}
......
......@@ -103,7 +103,7 @@ QHash<int, QByteArray> IconsModel::roleNames() const
{DescriptionRole, QByteArrayLiteral("description")},
{ThemeNameRole, QByteArrayLiteral("themeName")},
{RemovableRole, QByteArrayLiteral("removable")},
{PendingDeletionRole, QByteArrayLiteral("pendingDeletion")}
{PendingDeletionRole, QByteArrayLiteral("pendingDeletion")},
};
}
......
......@@ -74,7 +74,7 @@ QHash<int, QByteArray> StylesModel::roleNames() const
{Qt::DisplayRole, QByteArrayLiteral("display")},
{StyleNameRole, QByteArrayLiteral("styleName")},
{DescriptionRole, QByteArrayLiteral("description")},
{ConfigurableRole, QByteArrayLiteral("configurable")}
{ConfigurableRole, QByteArrayLiteral("configurable")},
};
}
......
......@@ -75,7 +75,7 @@ QHash<int, QByteArray> CurrentContainmentActionsModel::roleNames() const
return {
{ ActionRole, "action" },
{ PluginNameRole, "pluginName" },
{ HasConfigurationInterfaceRole, "hasConfigurationInterface" }
{ HasConfigurationInterfaceRole, "hasConfigurationInterface" },
};
}
......
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