New upstream version 21.0.2+dfsg1
This commit is contained in:
parent
1f1bbb3518
commit
baafb6325b
706 changed files with 49633 additions and 5044 deletions
|
|
@ -37,11 +37,16 @@ static bool IsWhitespace(char ch)
|
|||
}
|
||||
|
||||
bool NameDialog::AskForName(QWidget *parent, const QString &title,
|
||||
const QString &text, string &str, const QString &placeHolder)
|
||||
const QString &text, string &str, const QString &placeHolder,
|
||||
int maxSize)
|
||||
{
|
||||
if (maxSize <= 0 || maxSize > 32767)
|
||||
maxSize = 256;
|
||||
|
||||
NameDialog dialog(parent);
|
||||
dialog.setWindowTitle(title);
|
||||
dialog.ui->label->setText(text);
|
||||
dialog.ui->userText->setMaxLength(maxSize);
|
||||
dialog.ui->userText->setText(placeHolder);
|
||||
dialog.ui->userText->selectAll();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue