trust level display in delegate, list size tweaking

This commit is contained in:
Blue 2023-01-14 18:34:14 +03:00
parent d4bf7e599a
commit b72a837754
Signed by: blue
GPG key ID: 9B203B252A63EE38
10 changed files with 203 additions and 27 deletions

View file

@ -74,6 +74,7 @@ namespace Shared {
static QString getName(Role rl);
static QString getName(Message::State rl);
static QString getName(AccountPassword ap);
static QString getName(TrustLevel tl);
static QString getDescription(AccountPassword ap);
@ -84,6 +85,7 @@ namespace Shared {
const std::deque<QString> role;
const std::deque<QString> messageState;
const std::deque<QString> accountPassword;
const std::deque<QString> trustLevel;
const std::deque<QString> accountPasswordDescription;
@ -103,10 +105,12 @@ namespace Shared {
static void setStyle(const QString& style);
const bool omemoSupport;
QFont defaultFont;
QFont monospaceFont;
QFont smallFont;
QFont headerFont;
QFont titleFont;
QFontMetrics defaultFontMetrics;
QFontMetrics monospaceMetrics;
QFontMetrics smallFontMetrics;
QFontMetrics headerFontMetrics;
QFontMetrics titleFontMetrics;