void Item::keyReleaseEvent(QKeyEvent *e) { if (e->key()==Qt::Key_Control) { /* ΧΧΧ This is wrong, we should look at item under mouse XXX */ if (changesCursorShape()) setCursor(Cursors::refined(cursorShape(e->modifiers()))); } QGraphicsItem::keyReleaseEvent(e); }
static rfbBool handleEncodingItalcCursor( rfbClient *c, rfbFramebufferUpdateRectHeader *r ) { ItalcVncConnection *t = (ItalcVncConnection *) rfbClientGetClientData( c, 0 ); if( r->encoding != rfbEncodingItalcCursor || t == NULL ) { return false; } QImage cursorShape( SocketDevice( libvncClientDispatcher, c ).read().value<QImage>() ); t->cursorShapeUpdatedExternal( cursorShape, r->r.x, r->r.y ); return true; }
void GfxBlockItem::dragLeaveEvent(QGraphicsSceneDragDropEvent *e) { BlockItem::dragLeaveEvent(e); setCursor(cursorShape(e->modifiers())); }
void Item::hoverEnterEvent(QGraphicsSceneHoverEvent *e) { perhapsCreateGlow(e->modifiers()); if (changesCursorShape()) setCursor(Cursors::refined(cursorShape(e->modifiers()))); e->accept(); }