Computer Assited Medical Intervention Tool Kit  version 5.0
QtKeySequenceEdit Class Reference

#include <qtpropertybrowserutils_p.h>

+ Inheritance diagram for QtKeySequenceEdit:
+ Collaboration diagram for QtKeySequenceEdit:

Public Slots

void setKeySequence (const QKeySequence &sequence)
 

Signals

void keySequenceChanged (const QKeySequence &sequence)
 

Public Member Functions

bool eventFilter (QObject *o, QEvent *e) override
 
QKeySequence keySequence () const
 
 QtKeySequenceEdit (QWidget *parent=nullptr)
 

Protected Member Functions

bool event (QEvent *e) override
 
void focusInEvent (QFocusEvent *e) override
 
void focusOutEvent (QFocusEvent *e) override
 
void keyPressEvent (QKeyEvent *e) override
 
void keyReleaseEvent (QKeyEvent *e) override
 
void paintEvent (QPaintEvent *) override
 

Private Slots

void slotClearShortcut ()
 

Private Member Functions

void handleKeyEvent (QKeyEvent *e)
 
int translateModifiers (Qt::KeyboardModifiers state, const QString &text) const
 

Private Attributes

QKeySequence m_keySequence
 
QLineEdit * m_lineEdit
 
int m_num {0}
 

Constructor & Destructor Documentation

◆ QtKeySequenceEdit()

QtKeySequenceEdit::QtKeySequenceEdit ( QWidget *  parent = nullptr)

References m_lineEdit.

Member Function Documentation

◆ event()

bool QtKeySequenceEdit::event ( QEvent *  e)
overrideprotected

◆ eventFilter()

bool QtKeySequenceEdit::eventFilter ( QObject *  o,
QEvent *  e 
)
override

References m_keySequence, m_lineEdit, and slotClearShortcut().

+ Here is the call graph for this function:

◆ focusInEvent()

void QtKeySequenceEdit::focusInEvent ( QFocusEvent *  e)
overrideprotected

References m_lineEdit.

◆ focusOutEvent()

void QtKeySequenceEdit::focusOutEvent ( QFocusEvent *  e)
overrideprotected

References m_lineEdit, and m_num.

◆ handleKeyEvent()

void QtKeySequenceEdit::handleKeyEvent ( QKeyEvent *  e)
private

References keySequenceChanged(), m_keySequence, m_lineEdit, m_num, and translateModifiers().

Referenced by keyPressEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keyPressEvent()

void QtKeySequenceEdit::keyPressEvent ( QKeyEvent *  e)
overrideprotected

References handleKeyEvent().

+ Here is the call graph for this function:

◆ keyReleaseEvent()

void QtKeySequenceEdit::keyReleaseEvent ( QKeyEvent *  e)
overrideprotected

References m_lineEdit.

◆ keySequence()

QKeySequence QtKeySequenceEdit::keySequence ( ) const

References m_keySequence.

◆ keySequenceChanged

void QtKeySequenceEdit::keySequenceChanged ( const QKeySequence &  sequence)
signal

Referenced by handleKeyEvent(), and slotClearShortcut().

+ Here is the caller graph for this function:

◆ paintEvent()

void QtKeySequenceEdit::paintEvent ( QPaintEvent *  )
overrideprotected

◆ setKeySequence

void QtKeySequenceEdit::setKeySequence ( const QKeySequence &  sequence)
slot

References m_keySequence, m_lineEdit, and m_num.

Referenced by QtKeySequenceEditorFactory::createEditor(), slotClearShortcut(), and QtKeySequenceEditorFactoryPrivate::slotPropertyChanged().

+ Here is the caller graph for this function:

◆ slotClearShortcut

void QtKeySequenceEdit::slotClearShortcut ( )
privateslot

References keySequenceChanged(), m_keySequence, and setKeySequence().

Referenced by eventFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ translateModifiers()

int QtKeySequenceEdit::translateModifiers ( Qt::KeyboardModifiers  state,
const QString &  text 
) const
private

Referenced by handleKeyEvent().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_keySequence

QKeySequence QtKeySequenceEdit::m_keySequence
private

◆ m_lineEdit

QLineEdit* QtKeySequenceEdit::m_lineEdit
private

◆ m_num

int QtKeySequenceEdit::m_num {0}
private

The documentation for this class was generated from the following files: