Android Avd Dialog: Fix what the Name validator accepts

While at it, make non acceptable chars give better feedback.

Change-Id: I080f01592b2c8cbd6580734ca3e6fd46b9491106
Task-number: QTCREATORBUG-13589
Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
Daniel Teske
2015-05-06 15:58:46 +02:00
parent 372173331c
commit 0bd0468263
4 changed files with 49 additions and 6 deletions

View File

@@ -32,7 +32,9 @@
#define AVDDIALOG_H
#include "ui_addnewavddialog.h"
#include <QDialog>
#include <QTimer>
namespace Android {
class AndroidConfig;
@@ -51,12 +53,17 @@ public:
QString abi() const;
int sdcardSize() const;
bool isValid() const;
private slots:
void updateApiLevelComboBox();
private:
bool eventFilter(QObject *obj, QEvent *event);
Ui::AddNewAVDDialog m_avdDialog;
const AndroidConfig *m_config;
int m_minApiLevel;
QTimer m_hideTipTimer;
QRegExp m_allowedNameChars;
};
}
}