![]() |
Cockatrice 2026-03-05-Development-2.11.0-beta.54
A virtual tabletop for multiplayer card games
|
Custom QInputDialog::getText implementation that allows configuration of the max length. More...
Go to the source code of this file.
Functions | |
| 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.
|
inlinestatic |
| 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 ) |