Computer Assited Medical Intervention Tool Kit  version 4.1
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
QtCharEdit Class Reference

Inherits QWidget.

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

◆ 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().

◆ keyPressEvent()

void QtCharEdit::keyPressEvent ( QKeyEvent *  e)
overrideprotected

References handleKeyEvent().

◆ keyReleaseEvent()

void QtCharEdit::keyReleaseEvent ( QKeyEvent *  e)
overrideprotected

References m_lineEdit.

◆ paintEvent()

void QtCharEdit::paintEvent ( QPaintEvent *  )
overrideprotected

◆ setValue

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

◆ slotClearChar

void QtCharEdit::slotClearChar ( )
privateslot

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

Referenced by eventFilter().

◆ value()

QChar QtCharEdit::value ( ) const

References m_value.

Referenced by setValue().

◆ valueChanged

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

Referenced by handleKeyEvent(), and slotClearChar().

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: