Only keep one Kirigami theme instance for all users

Fetching the Kirigami Theme via attached properties is expensive. The
theme is also going to be the same for all users so it's enough to only
do it once.
This commit is contained in:
Nicolas Fella
2021-02-02 22:40:32 +01:00
parent f217bbd3c4
commit 66bcc2105a
2 changed files with 9 additions and 5 deletions

View File

@@ -32,7 +32,6 @@ Q_SIGNALS:
void colorChanged(QColor _t1);
private:
Kirigami::PlatformTheme *m_theme = nullptr;
QColor m_color;
void polishColor();