@@ -19,17 +19,14 @@
1919CursorImageInfo::CursorImageInfo(QObject *parent)
2020 : QObject(parent)
2121{
22− m_updateTimer.setInterval(0);
23− m_updateTimer.setSingleShot(true);
24− connect(&m_updateTimer, &QTimer::timeout, this, &CursorImageInfo::update);
2522}
2623
2724void CursorImageInfo::setCursorName(const QString &cursorName)
2825{
2926 if (cursorName != m_cursorName) {
3027 m_cursorName = cursorName;
28+ update();
3129 Q_EMIT cursorNameChanged();
32− scheduleUpdate();
3330 }
3431}
3532
@@ -37,15 +34,8 @@ void CursorImageInfo::setThemeName(const QString &themeName)
3734{
3835 if (m_themeName != themeName) {
3936 m_themeName = themeName;
37+ update();
4038 Q_EMIT themeNameChanged();
41− scheduleUpdate();
42− }
43−}
44−
45−void CursorImageInfo::scheduleUpdate()
46−{
47− if (!m_updateTimer.isActive()) {
48− m_updateTimer.start();
4939 }
5040}
5141