Computer Assited Medical Intervention Tool Kit  version 5.0
QtCharEdit Class Reference
+ Inheritance diagram for QtCharEdit:
+ Collaboration diagram for QtCharEdit:

Public Slots

void setValue (const QChar &value)
 

Signals

void valueChanged (const QChar &value)
 

Public Member Functions

bool eventFilter (QObject *o, QEvent *e) override
 
 QtCharEdit (QWidget *parent=nullptr)
 
QChar value () const
 

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 slotClearChar ()
 

Private Member Functions

void handleKeyEvent (QKeyEvent *e)
 

Private Attributes

QLineEdit * m_lineEdit
 
QChar m_value
 

Constructor & Destructor Documentation

◆ QtCharEdit()

QtCharEdit::QtCharEdit ( QWidget *  parent = nullptr)

References m_lineEdit.

Member Function Documentation

◆ event()

bool QtCharEdit::event ( QEvent *  e)
overrideprotected

◆ eventFilter()

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

References m_lineEdit, m_value, and slotClearChar().

+ Here is the call graph for this function:

◆ focusInEvent()

void QtCharEdit::focusInEvent ( QFocusEvent *  e)
overrideprotected

References m_lineEdit.

◆ focusOutEvent()

void QtCharEdit::focusOutEvent ( QFocusEvent *  e)
overrideprotected

References m_lineEdit.

◆ handleKeyEvent()

void QtCharEdit::handleKeyEvent ( QKeyEvent *  e)
private

References m_lineEdit, m_value, and valueChanged().

Referenced by keyPressEvent().

+ Here is the caller graph for this function:

◆ keyPressEvent()

void QtCharEdit::keyPressEvent ( QKeyEvent *  e)
overrideprotected

References handleKeyEvent().

+ Here is the call graph for this function:

◆ keyReleaseEvent()

void QtCharEdit::keyReleaseEvent ( QKeyEvent *  e)
overrideprotected

References m_lineEdit.

◆ paintEvent()

void QtCharEdit::paintEvent ( QPaintEvent *  )
overrideprotected

◆ setValue

void QtCharEdit::setValue ( const QChar &  value)
slot

References m_lineEdit, m_value, and value().

Referenced by QtCharEditorFactory::createEditor(), slotClearChar(), and QtCharEditorFactoryPrivate::slotPropertyChanged().

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

◆ slotClearChar

void QtCharEdit::slotClearChar ( )
privateslot

References m_value, setValue(), and valueChanged().

Referenced by eventFilter().

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

◆ value()

QChar QtCharEdit::value ( ) const

References m_value.

Referenced by setValue().

+ Here is the caller graph for this function:

◆ valueChanged

void QtCharEdit::valueChanged ( const QChar &  value)
signal

Referenced by handleKeyEvent(), and slotClearChar().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_lineEdit

QLineEdit* QtCharEdit::m_lineEdit
private

◆ m_value

QChar QtCharEdit::m_value
private

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