Custom QInputDialog::getText implementation that allows configuration of the max length.
More...
#include <QLineEdit>
#include <QWidget>
#include <libcockatrice/utility/trice_limits.h>
Go to the source code of this file.
|
| QString | getTextWithMax (QWidget *parent, const QString &title, const QString &label, QLineEdit::EchoMode echo=QLineEdit::Normal, const QString &text=QString(), bool *ok=nullptr, int max=MAX_NAME_LENGTH, Qt::WindowFlags flags=Qt::WindowFlags(), Qt::InputMethodHints inputMethodHints=Qt::ImhNone) |
| static QString | getTextWithMax (QWidget *parent, const QString &title, const QString &label, int max) |
Custom QInputDialog::getText implementation that allows configuration of the max length.
◆ getTextWithMax() [1/2]
| QString getTextWithMax |
( |
QWidget * | parent, |
|
|
const QString & | title, |
|
|
const QString & | label, |
|
|
int | max ) |
|
inlinestatic |
◆ getTextWithMax() [2/2]
| QString getTextWithMax |
( |
QWidget * | parent, |
|
|
const QString & | title, |
|
|
const QString & | label, |
|
|
QLineEdit::EchoMode | echo = QLineEdit::Normal, |
|
|
const QString & | text = QString(), |
|
|
bool * | ok = nullptr, |
|
|
int | max = MAX_NAME_LENGTH, |
|
|
Qt::WindowFlags | flags = Qt::WindowFlags(), |
|
|
Qt::InputMethodHints | inputMethodHints = Qt::ImhNone ) |