New upstream version 24.0.1+dfsg1
This commit is contained in:
parent
b14f9eae6d
commit
5a730d6ec3
842 changed files with 42245 additions and 33385 deletions
|
|
@ -23,8 +23,7 @@
|
|||
using namespace std;
|
||||
|
||||
NameDialog::NameDialog(QWidget *parent)
|
||||
: QDialog (parent),
|
||||
ui (new Ui::NameDialog)
|
||||
: QDialog(parent), ui(new Ui::NameDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
|
@ -37,15 +36,16 @@ static bool IsWhitespace(char ch)
|
|||
}
|
||||
|
||||
bool NameDialog::AskForName(QWidget *parent, const QString &title,
|
||||
const QString &text, string &str, const QString &placeHolder,
|
||||
int maxSize)
|
||||
const QString &text, string &str,
|
||||
const QString &placeHolder, int maxSize)
|
||||
{
|
||||
if (maxSize <= 0 || maxSize > 32767)
|
||||
maxSize = 256;
|
||||
maxSize = 170;
|
||||
|
||||
NameDialog dialog(parent);
|
||||
dialog.setWindowTitle(title);
|
||||
dialog.setWindowFlags(dialog.windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
dialog.setWindowFlags(dialog.windowFlags() &
|
||||
~Qt::WindowContextHelpButtonHint);
|
||||
dialog.ui->label->setText(text);
|
||||
dialog.ui->userText->setMaxLength(maxSize);
|
||||
dialog.ui->userText->setText(placeHolder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue