Gui::AccelLineEdit Class Reference

The AccelLineEdit class provides a lineedit to specify shortcuts. More...

#include <Widgets.h>

Public Member Functions

 AccelLineEdit (QWidget *parent=nullptr)
 Constructs a line edit with no text. More...
 
bool isNone () const
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
 Checks which keys are pressed and show it as text. More...
 

Detailed Description

The AccelLineEdit class provides a lineedit to specify shortcuts.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ AccelLineEdit()

AccelLineEdit::AccelLineEdit ( QWidget parent = nullptr)

Constructs a line edit with no text.

The parent argument is sent to the QLineEdit constructor.

Member Function Documentation

◆ isNone()

bool AccelLineEdit::isNone ( ) const

Referenced by keyPressEvent().

◆ keyPressEvent()

void AccelLineEdit::keyPressEvent ( QKeyEvent *  e)
protected

Checks which keys are pressed and show it as text.

References isNone().


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