Lines Matching refs:keyEvent

517 void AbstractLogView::keyPressEvent( QKeyEvent* keyEvent )  in keyPressEvent()  argument
521 bool controlModifier = (keyEvent->modifiers() & Qt::ControlModifier) == Qt::ControlModifier; in keyPressEvent()
522 bool shiftModifier = (keyEvent->modifiers() & Qt::ShiftModifier) == Qt::ShiftModifier; in keyPressEvent()
523 bool noModifier = keyEvent->modifiers() == Qt::NoModifier; in keyPressEvent()
525 if ( keyEvent->key() == Qt::Key_Left && noModifier ) in keyPressEvent()
527 else if ( keyEvent->key() == Qt::Key_Right && noModifier ) in keyPressEvent()
529 else if ( keyEvent->key() == Qt::Key_Home && !controlModifier) in keyPressEvent()
531 else if ( keyEvent->key() == Qt::Key_End && !controlModifier) in keyPressEvent()
533 else if ( (keyEvent->key() == Qt::Key_PageDown && controlModifier) in keyPressEvent()
534 || (keyEvent->key() == Qt::Key_End && controlModifier) ) in keyPressEvent()
541 else if ( (keyEvent->key() == Qt::Key_PageUp && controlModifier) in keyPressEvent()
542 || (keyEvent->key() == Qt::Key_Home && controlModifier) ) in keyPressEvent()
544 else if ( keyEvent->key() == Qt::Key_F3 && !shiftModifier ) in keyPressEvent()
546 else if ( keyEvent->key() == Qt::Key_F3 && shiftModifier ) in keyPressEvent()
548 else if ( keyEvent->key() == Qt::Key_Space && noModifier ) in keyPressEvent()
551 const char character = (keyEvent->text())[0].toLatin1(); in keyPressEvent()
553 if ( keyEvent->modifiers() == Qt::NoModifier && in keyPressEvent()
559 switch ( (keyEvent->text())[0].toLatin1() ) { in keyPressEvent()
629 keyEvent->ignore(); in keyPressEvent()
634 if ( keyEvent->isAccepted() ) { in keyPressEvent()
640 LOG(logDEBUG) << std::hex << keyEvent->modifiers(); in keyPressEvent()
641 if ( keyEvent->modifiers() == Qt::NoModifier || in keyPressEvent()
642 keyEvent->modifiers() == Qt::KeypadModifier ) { in keyPressEvent()
643 QAbstractScrollArea::keyPressEvent( keyEvent ); in keyPressEvent()