Custom cursor name just have to start with "custom"
That way it's possible to change between consecutive custom
cursors as they will yield different image URLs
commit2e3cdf627c34720845a40560caa0aa9415df9745
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateFri 17 Jun 2016, 01:18 (10 years ago)
parentf426a945668f71
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];