![]() |
Sayonara Player
|
Dialog for entering one line. Listen for the sig_closed() signal for the Gui::Dialog class and request the text value afterwards if LineInputDialog::ReturnValue is set to LineInputDialog::ReturnValue::Ok. More...
#include <LineInputDialog.h>
Public Types | |
| enum | ReturnValue { Ok =0 , Cancelled } |
Signals | |
| void | sigClosed () |
| emitted when closed | |
Public Member Functions | |
| LineInputDialog (const QString &title, const QString &infoText, const QString &inputText, QWidget *parent=nullptr) | |
| LineInputDialog (const QString &title, const QString &infoText, QWidget *parent=nullptr) | |
| void | setHeaderText (const QString &text) |
| void | setInfoText (const QString &text) |
| void | setCompleterText (const QStringList &lst) |
| ReturnValue | returnValue () const |
| returns if the dialog was closes by cancel or ok button More... | |
| QString | text () const |
| Return the entered text. More... | |
| void | setText (const QString &text) |
| Prefill the QLineEdit widget. More... | |
| void | setPlaceholderText (const QString &text) |
| void | showInfo (bool b, const QString &infoPrefix=QString()) |
| bool | wasAccepted () const |
| Convenience method for return_value() method. More... | |
| void | setInvalidChars (const QList< QChar > &chars) |
| void | resizeRelative (QWidget *widget, double percent, const QSize &maxSize) |
| bool | isAccepted () const |
Dialog for entering one line. Listen for the sig_closed() signal for the Gui::Dialog class and request the text value afterwards if LineInputDialog::ReturnValue is set to LineInputDialog::ReturnValue::Ok.
| ReturnValue Gui::LineInputDialog::returnValue | ( | ) | const |
returns if the dialog was closes by cancel or ok button
| void Gui::LineInputDialog::setText | ( | const QString & | text | ) |
Prefill the QLineEdit widget.
| text |
| QString Gui::LineInputDialog::text | ( | ) | const |
Return the entered text.
| bool Gui::LineInputDialog::wasAccepted | ( | ) | const |
Convenience method for return_value() method.