InputWidget Class Reference

A input widget. More...

#include <inputwidget.h>

List of all members.

Public Slots

void show (QString title)

Signals

void done ()

Public Member Functions

 InputWidget (QWidget *parent=0)
 ~InputWidget ()
QString getInput ()

Detailed Description

A input widget.

This widget consists of a title, a lineedit, a OK button and a cancel button. Use it for simple inputs.

Author:
Manuel Unglaub

Constructor & Destructor Documentation

InputWidget::InputWidget ( QWidget *  parent = 0  ) 

The constructor.

Constructs the InputWidget which is a child of parent.

Parameters:
parent The parent of this InputWidget.
InputWidget::~InputWidget (  ) 

The destructor.

Destroys the object.


Member Function Documentation

void InputWidget::done (  )  [signal]

The ok button was clicked or the user hit enter in the lineedit.

QString InputWidget::getInput (  ) 

Get the users input.

Returns:
The input in the lineedit.
void InputWidget::show ( QString  title  )  [slot]

Show the InputWidget, clear the lineedit, set the title and set the focus to the lineedit.

Parameters:
title The title of this InputWidget.

The documentation for this class was generated from the following files:
Generated on Fri May 14 19:12:51 2010 for Silence by  doxygen 1.6.3