tuchulcha  0.10.1
Graphical Workflow Configuration Editor
QTextInputDialog Class Reference

dialog to query a string variable, similar to QInputDialog More...

#include <QTextInputDialog.h>

Inheritance diagram for QTextInputDialog:

Signals

void textValueChanged (const QString &)
 changed text
 
void textValueSelected (const QString &)
 text selected
 

Public Member Functions

 QTextInputDialog (QWidget *parent=0, Qt::WindowFlags flags=0)
 default constructor More...
 
property setter/getter
QString labelText () const
 label text
 
void setLabelText (const QString &)
 set label text
 
QString textValue () const
 line edit text
 
void setTextValue (const QString &)
 set line edit text
 
QLineEdit::EchoMode textEchoMode () const
 text echo mode
 
void setTextEchoMode (QLineEdit::EchoMode)
 set text echo mode
 
const QValidator * validator () const
 text validator
 
void setValidator (const QValidator *)
 set validator
 

Static Public Member Functions

static QString getText (QWidget *parent, const QString &title, const QString &label, QLineEdit::EchoMode mode=QLineEdit::Normal, const QString &text=QString(), bool *ok=0, Qt::WindowFlags flags=0, Qt::InputMethodHints iHints=Qt::ImhNone, QValidator *val=0)
 get text More...
 

Protected Member Functions

virtual void done (int result)
 dialog done
 

Protected Attributes

QLineEdit * eText
 text line edit
 
QLabel * lText
 text label
 

Properties

QString labelText
 text displayed to the user
 
QLineEdit::EchoMode textEchoMode
 text echo mode of the input line edit
 
QString textValue
 text entered by the user
 

Detailed Description

but with ability to set a validator to the line edit

Definition at line 33 of file QTextInputDialog.h.

Constructor & Destructor Documentation

QTextInputDialog::QTextInputDialog ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)
explicit
Parameters
parentparent widget
flagswindow flags

Definition at line 29 of file QTextInputDialog.cpp.

References eText, lText, and textValueChanged().

Member Function Documentation

QString QTextInputDialog::getText ( QWidget *  parent,
const QString &  title,
const QString &  label,
QLineEdit::EchoMode  mode = QLineEdit::Normal,
const QString &  text = QString(),
bool *  ok = 0,
Qt::WindowFlags  flags = 0,
Qt::InputMethodHints  iHints = Qt::ImhNone,
QValidator *  val = 0 
)
static

copy of QInputDialog::getText interface

Parameters
parentparent widget
titledialog window title
labellabel for text input
modetext input mode
textinput text content
oktrue if ok has been pressed, false if canceled
flagswindow flags
iHintsinput method hints
valvalidator
Returns
entered text or empty string if canceled

Definition at line 60 of file QTextInputDialog.cpp.

References setLabelText(), setTextEchoMode(), setTextValue(), setValidator(), and textValue.


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