QFormulatorEditWidget::QFormulatorEditWidget( QWidget *parent, QObject *uiUpdater ) : QFormulatorWidget( parent, uiUpdater ) { setCursor(Qt::IBeamCursor); setMouseTracking( true ); setAcceptDrops( true ); m_cursorBlinkTimer = new QTimer( this ); connect(m_cursorBlinkTimer, SIGNAL(timeout()), this, SLOT(switchCursor())); clearRemovedSelection(); setVerbose( true ); setPrintingMode( false ); setBlinkingCursorEnabled( true ); }
/** * \brief Handles the marker action released event */ void UBDesktopAnnotationController::markerActionReleased() { qDebug() << "markerActionReleased()"; mHoldTimerMarker.stop(); if(mPendingMarkerButtonPressed) { if(mbArrowClicked || mMarkerHoldTimer.msecsTo(QTime::currentTime()) > PROPERTY_PALETTE_TIMER - 100) { togglePropertyPalette(mDesktopMarkerPalette); } else { UBApplication::mainWindow->actionMarker->trigger(); } mPendingMarkerButtonPressed = false; } UBApplication::mainWindow->actionMarker->setChecked(true); switchCursor(UBStylusTool::Marker); }
void UBDesktopAnnotationController::pointerActionReleased() { switchCursor(UBStylusTool::Pointer); }
void UBDesktopAnnotationController::selectorActionReleased() { switchCursor(UBStylusTool::Selector); }