MCPcopy Create free account
hub / github.com/KDE/kdevelop / validate

Method validate

kdevplatform/shell/settings/environmentwidget.cpp:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54QValidator::State ProfileNameValidator::validate(QString& input, int& pos) const
55{
56 Q_UNUSED(pos);
57
58 if (input.isEmpty()) {
59 return QValidator::Intermediate;
60 }
61 if (m_environmentProfileListModel->hasProfile(input)) {
62 return QValidator::Intermediate;
63 }
64 return QValidator::Acceptable;
65}
66
67EnvironmentWidget::EnvironmentWidget( QWidget *parent )
68 : QWidget(parent)

Callers 1

askNewProfileNameMethod · 0.45

Calls 2

hasProfileMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected