diff options
author | hjk <[email protected]> | 2025-04-17 17:10:56 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2025-04-25 06:03:50 +0000 |
commit | c1603c2e750dc8512101271dce787f0743c98c0e (patch) | |
tree | e6ff70d7638cbe4962eff20b89b19bc350fd7ff2 /src/libs/utils/projectintropage.cpp | |
parent | 5d45e339a7a4f1dc66a5bb64333521f0774f3adc (diff) |
Utils: Allow validators operating on a single string in FancyLineEdit
Change-Id: I68f21e96efab05e9f5aa6c18973cbdb20c0c3417
Reviewed-by: Alessandro Portale <[email protected]>
Diffstat (limited to 'src/libs/utils/projectintropage.cpp')
-rw-r--r-- | src/libs/utils/projectintropage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/utils/projectintropage.cpp b/src/libs/utils/projectintropage.cpp index 657d69cf9ed..a31fdcdcbc9 100644 --- a/src/libs/utils/projectintropage.cpp +++ b/src/libs/utils/projectintropage.cpp @@ -99,8 +99,8 @@ ProjectIntroPage::ProjectIntroPage(QWidget *parent) : d->m_nameLineEdit->setPlaceholderText(Tr::tr("Enter project name")); d->m_nameLineEdit->setObjectName("nameLineEdit"); d->m_nameLineEdit->setFocus(); - d->m_nameLineEdit->setValidationFunction([this](FancyLineEdit *edit) { - return validateProjectName(edit->text()); + d->m_nameLineEdit->setValidationFunction([this](const QString &text) { + return validateProjectName(text); }); d->m_projectLabel = new QLabel(Tr::tr("Add to project:")); |