Make user colors update when colortheme changes
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
#include "stickerevent.h"
|
#include "stickerevent.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QGuiApplication>
|
||||||
#include <QQmlEngine> // for qmlRegisterType()
|
#include <QQmlEngine> // for qmlRegisterType()
|
||||||
#include <QTimeZone>
|
#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;
|
MessageEventModel::~MessageEventModel() = default;
|
||||||
|
|||||||
Reference in New Issue
Block a user