@@ -27,24 +27,28 @@ CursorImageInfo::CursorImageInfo(QObject *parent)
27void CursorImageInfo::setCursorName(const QString &cursorName)
27void CursorImageInfo::setCursorName(const QString &cursorName)
29 if (cursorName != m_cursorName) {
29 if (cursorName != m_cursorName) {
30 m_cursorName = cursorName;
31 m_cursorName = cursorName;
31 Q_EMIT cursorNameChanged();
32 Q_EMIT cursorNameChanged();
36void CursorImageInfo::setThemeName(const QString &themeName)
36void CursorImageInfo::setThemeName(const QString &themeName)
38 if (m_themeName != themeName) {
38 if (m_themeName != themeName) {
39 m_themeName = themeName;
40 m_themeName = themeName;
40 Q_EMIT themeNameChanged();
41 Q_EMIT themeNameChanged();
45void CursorImageInfo::scheduleUpdate()
45void CursorImageInfo::scheduleUpdate()
47 if (!m_updateTimer.isActive()) {
47 if (!m_updateTimer.isActive()) {
50+ Q_EMIT readyChanged();
48 m_updateTimer.start();
52 m_updateTimer.start();
@@ -58,6 +62,10 @@ void CursorImageInfo::update()
58 Q_EMIT frameHeightChanged();
62 Q_EMIT frameHeightChanged();
59 Q_EMIT frameCountChanged();
63 Q_EMIT frameCountChanged();
60 Q_EMIT frameDurationChanged();
64 Q_EMIT frameDurationChanged();
68+ Q_EMIT readyChanged();
63QPoint CursorImageInfo::hotspot() const
71QPoint CursorImageInfo::hotspot() const
@@ -104,3 +112,8 @@ int CursorImageInfo::frameDuration() const
104 return 0;
112 return 0;
116+bool CursorImageInfo::ready() const