##

EditableLabel Class Reference

Editable Label. More...

`#include <EditableLabel.hh>`

Inherits QWidget.

## Public Member Functions

| EditableLabel (const std::string &_label, QWidget *_parent=nullptr)
| Constructor. More...
| ~EditableLabel ()
| Destructor. More...
std::string | Text () const
| Get the string of this label. More...

## Protected Member Functions

virtual void | keyPressEvent (QKeyEvent *_event)
| Qt key press event. More...
virtual void | mouseDoubleClickEvent (QMouseEvent *_event)
| Qt mouse double click event. More...

## Detailed Description

Editable Label.

The widget toggles between a QLabel and QLineEdit to support edits to the label text.

## Constructor & Destructor Documentation

## EditableLabel()

EditableLabel | ( | const std::string & | _label,
|  | QWidget * | _parent = `nullptr`
| ) |  |

Constructor.

Parameters

  [in] | _label | Label text.
  [in] | _parent | Parent widget.

## ~EditableLabel()

~EditableLabel | ( |  | ) |

Destructor.

## Member Function Documentation

## keyPressEvent()

virtual void keyPressEvent | ( | QKeyEvent * | _event | ) |

protected virtual

Qt key press event.

Parameters

  [in] | _event | Qt key event

## mouseDoubleClickEvent()

virtual void mouseDoubleClickEvent | ( | QMouseEvent * | _event | ) |

protected virtual

Qt mouse double click event.

Parameters

  [in] | _event | Qt mouse event

## Text()

std::string Text | ( |  | ) | const

Get the string of this label.

Returns
  Label string.

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

- EditableLabel.hh