forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user