Verified Commit 4f158b1e authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[components] Reorder roles to make them look more like SDDM roles

This is not a public header, so we don't care about compatibility. SDDM
does not use standard Qt roles like DisplayRole or DecorationRole, so
there's little reason for this sessions model to redefine them either.
parent ffe3344e
......@@ -51,14 +51,14 @@ public:
~SessionsModel() override = default;
enum UserRoles {
RealNameRole = Qt::DisplayRole,
IconRole = Qt::DecorationRole, // path to a file
NameRole = Qt::UserRole + 1,
IconRole, // path to a file
IconNameRole, // name of an icon
IconNameRole, // name of an icon
Supports Markdown
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