Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
get_text_with_max.h File Reference

Custom QInputDialog::getText implementation that allows configuration of the max length. More...

#include <QLineEdit>
#include <QWidget>
#include <libcockatrice/utility/trice_limits.h>
Include dependency graph for get_text_with_max.h:
This graph shows which files directly or indirectly include this file:

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)

Detailed Description

Custom QInputDialog::getText implementation that allows configuration of the max length.

Function Documentation

◆ getTextWithMax() [1/2]

QString getTextWithMax ( QWidget * parent,
const QString & title,
const QString & label,
int max )
inlinestatic
Here is the call graph for this function:

◆ 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 )
Here is the caller graph for this function: