Make user colors update when colortheme changes

This commit is contained in:
Tobias Fella
2022-02-11 02:06:46 +01:00
parent 6014c15b4f
commit f55dc19d95

View File

@@ -15,6 +15,7 @@
#include "stickerevent.h"
#include <QDebug>
#include <QGuiApplication>
#include <QQmlEngine> // for qmlRegisterType()
#include <QTimeZone>
@@ -75,6 +76,9 @@ MessageEventModel::MessageEventModel(QObject *parent)
}
});
});
connect(static_cast<QGuiApplication *>(QGuiApplication::instance()), &QGuiApplication::paletteChanged, this, [this] {
Q_EMIT dataChanged(index(0, 0), index(rowCount() - 1, 0), {AuthorRole, ReplyRole});
});
}
MessageEventModel::~MessageEventModel() = default;