Custom cursor name just have to start with "cursor"
That way it's possible to change between consecutive custom
cursors as they will yield different image URLs
commit5668f7107cb81420137d02d00be1bc0454832f6d
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateMon 6 Jun 2016, 17:35 (10 years ago)
parent7fdbae9
plugins/Cursor/CursorImageProvider.cpp+1−1
@@ -300,7 +300,7 @@ CursorImage *CursorImageProvider::fetchCursorHelper(const QString &themeName, co
300300{
301301 if (cursorName == QLatin1String("blank")) {
302302 return &m_blankCursorImage;
303− } else if (cursorName == QLatin1String("custom")) {
303+ } else if (cursorName.startsWith(QLatin1String("custom"))) {
304304 return m_customCursorImage.data();
305305 } else {
306306 QMap<QString, CursorImage*> &themeCursors = m_cursors[themeName];