| 52 | } |
| 53 | |
| 54 | QValidator::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 | |
| 67 | EnvironmentWidget::EnvironmentWidget( QWidget *parent ) |
| 68 | : QWidget(parent) |
no test coverage detected