void QPlatformCursorImage::set(Qt::CursorShape id) { QPlatformCursorImage *cursor = 0; if (id >= 0 && id <= Qt::LastCursor) { if (!systemCursorTable[id]) createSystemCursor(id); cursor = systemCursorTable[id]; } if (cursor == 0) { if (!systemCursorTable[Qt::ArrowCursor]) createSystemCursor(Qt::ArrowCursor); cursor = systemCursorTable[Qt::ArrowCursor]; } cursorImage = cursor->cursorImage; hot = cursor->hot; }
QWSCursor *QWSCursor::systemCursor(int id) { QWSCursor *cursor = 0; #ifdef QT_NO_QWS_CURSOR Q_UNUSED(id); #else if (id >= 0 && id <= Qt::LastCursor) { if (!systemCursorTable[id]) createSystemCursor(id); cursor = systemCursorTable[id]; } if (cursor == 0) { if (!systemCursorTable[Qt::ArrowCursor]) createSystemCursor(Qt::ArrowCursor); cursor = systemCursorTable[Qt::ArrowCursor]; } #endif return cursor; }