A input widget. More...
#include <inputwidget.h>
Public Slots | |
void | show (QString title) |
Signals | |
void | done () |
Public Member Functions | |
InputWidget (QWidget *parent=0) | |
~InputWidget () | |
QString | getInput () |
A input widget.
This widget consists of a title, a lineedit, a OK button and a cancel button. Use it for simple inputs.
InputWidget::InputWidget | ( | QWidget * | parent = 0 |
) |
The constructor.
Constructs the InputWidget which is a child of parent.
parent | The parent of this InputWidget. |
InputWidget::~InputWidget | ( | ) |
The destructor.
Destroys the object.
void InputWidget::done | ( | ) | [signal] |
The ok button was clicked or the user hit enter in the lineedit.
QString InputWidget::getInput | ( | ) |
Get the users input.
void InputWidget::show | ( | QString | title | ) | [slot] |
Show the InputWidget, clear the lineedit, set the title and set the focus to the lineedit.
title | The title of this InputWidget. |