Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkHotkeyLineEdit Class Reference

#include <QmitkHotkeyLineEdit.h>

Inheritance diagram for QmitkHotkeyLineEdit:
Collaboration diagram for QmitkHotkeyLineEdit:

Public Member Functions

 QmitkHotkeyLineEdit (QWidget *parent=nullptr)
 
 QmitkHotkeyLineEdit (const QKeySequence &_QKeySequence, QWidget *parent=nullptr)
 
 QmitkHotkeyLineEdit (const QString &_QString, QWidget *parent=nullptr)
 
virtual void SetKeySequence (const QKeySequence &_QKeySequence)
 
virtual void SetKeySequence (const QString &_QKeySequenceAsString)
 
virtual QKeySequence GetKeySequence ()
 
virtual QString GetKeySequenceAsString ()
 
bool Matches (QKeyEvent *event)
 

Static Public Attributes

static const std::string TOOLTIP
 

Protected Slots

void LineEditTextChanged (const QString &)
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event) override
 
void Init ()
 

Protected Attributes

QKeySequence m_KeySequence
 

Detailed Description

Definition at line 25 of file QmitkHotkeyLineEdit.h.

Constructor & Destructor Documentation

QmitkHotkeyLineEdit::QmitkHotkeyLineEdit ( QWidget *  parent = nullptr)

Definition at line 26 of file QmitkHotkeyLineEdit.cpp.

References Init().

QmitkHotkeyLineEdit::QmitkHotkeyLineEdit ( const QKeySequence &  _QKeySequence,
QWidget *  parent = nullptr 
)

Definition at line 31 of file QmitkHotkeyLineEdit.cpp.

References Init(), and SetKeySequence().

QmitkHotkeyLineEdit::QmitkHotkeyLineEdit ( const QString &  _QString,
QWidget *  parent = nullptr 
)

Definition at line 37 of file QmitkHotkeyLineEdit.cpp.

References Init(), and SetKeySequence().

Member Function Documentation

QKeySequence QmitkHotkeyLineEdit::GetKeySequence ( )
virtual

Definition at line 78 of file QmitkHotkeyLineEdit.cpp.

References m_KeySequence.

QString QmitkHotkeyLineEdit::GetKeySequenceAsString ( )
virtual

Definition at line 83 of file QmitkHotkeyLineEdit.cpp.

References m_KeySequence.

void QmitkHotkeyLineEdit::Init ( )
protected

Definition at line 43 of file QmitkHotkeyLineEdit.cpp.

References LineEditTextChanged(), and TOOLTIP.

Referenced by QmitkHotkeyLineEdit().

void QmitkHotkeyLineEdit::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual
void QmitkHotkeyLineEdit::LineEditTextChanged ( const QString &  text)
protectedslot

Definition at line 98 of file QmitkHotkeyLineEdit.cpp.

References m_KeySequence.

Referenced by Init().

bool QmitkHotkeyLineEdit::Matches ( QKeyEvent *  event)

Definition at line 88 of file QmitkHotkeyLineEdit.cpp.

References m_KeySequence.

void QmitkHotkeyLineEdit::SetKeySequence ( const QKeySequence &  _QKeySequence)
virtual

Definition at line 68 of file QmitkHotkeyLineEdit.cpp.

Referenced by keyPressEvent(), QmitkHotkeyLineEdit(), and SetKeySequence().

void QmitkHotkeyLineEdit::SetKeySequence ( const QString &  _QKeySequenceAsString)
virtual

Definition at line 73 of file QmitkHotkeyLineEdit.cpp.

References SetKeySequence().

Member Data Documentation

QKeySequence QmitkHotkeyLineEdit::m_KeySequence
protected
const std::string QmitkHotkeyLineEdit::TOOLTIP
static

Definition at line 30 of file QmitkHotkeyLineEdit.h.

Referenced by Init().


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