Show Row-Backgroundcolor in a column

Fixes #6553

Allow users to choose to show the entry background color as a column instead of changing the background of the entire row.
This commit is contained in:
Felix Nüsse 2023-09-16 07:16:22 -04:00 committed by Jonathan White
parent 4df16fa501
commit e82e9dad3b
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
6 changed files with 55 additions and 20 deletions

View file

@ -48,7 +48,8 @@ public:
Attachments = 11,
Totp = 12,
Size = 13,
PasswordStrength = 14
PasswordStrength = 14,
Color = 15
};
explicit EntryModel(QObject* parent = nullptr);
@ -67,6 +68,7 @@ public:
void setGroup(Group* group);
void setEntries(const QList<Entry*>& entries);
void setBackgroundColorVisible(bool visible);
private slots:
void entryAboutToAdd(Entry* entry);
@ -85,6 +87,7 @@ private:
void severConnections();
void makeConnections(const Group* group);
bool m_backgroundColorVisible = true;
Group* m_group;
QList<Entry*> m_entries;
QList<Entry*> m_orgEntries;