Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
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;
}
Exemplo n.º 3
0
void GfxBlockItem::dragLeaveEvent(QGraphicsSceneDragDropEvent *e) {
  BlockItem::dragLeaveEvent(e);
  setCursor(cursorShape(e->modifiers()));
}
Exemplo n.º 4
0
void Item::hoverEnterEvent(QGraphicsSceneHoverEvent *e) {
  perhapsCreateGlow(e->modifiers());
  if (changesCursorShape())
    setCursor(Cursors::refined(cursorShape(e->modifiers())));
  e->accept();
}