~zeller-benjamin/qtcreator-plugin-ubuntu/fixdevicedetection

« back to all changes in this revision

Viewing changes to src/ubuntu/ubuntumanifesteditorwidget.cpp

  • Committer: CI Train Bot
  • Author(s): Benjamin Zeller
  • Date: 2015-05-08 14:24:01 UTC
  • mfrom: (382.2.3 qtcreator-plugin-ubuntu)
  • Revision ID: ci-train-bot@canonical.com-20150508142401-e7k8yhb5niqz450a
- Fix lp:1357237 "Inconsistent QML main files"
- Fix lp:1280631 "SDK should have same restrictions on version number"
- Fix lp:1450481 "Default password not displayed in emulator creation wizard" Fixes: #1280631, #1357237, #1450481
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#include <QJsonDocument>
44
44
#include <QJsonObject>
45
45
#include <QJsonArray>
 
46
#include <QRegularExpressionValidator>
46
47
 
47
48
namespace Ubuntu {
48
49
namespace Internal {
71
72
    m_ui = new Ui::UbuntuManifestEditor();
72
73
    m_ui->setupUi(w);
73
74
 
 
75
    QRegularExpressionValidator *versionValidator = new QRegularExpressionValidator(m_ui->lineEdit_version);
 
76
    versionValidator->setRegularExpression(QRegularExpression(QLatin1String("^\\d*(\\.\\d*)*$")));
 
77
    m_ui->lineEdit_version->setValidator(versionValidator);
 
78
 
74
79
    connect(m_ui->comboBoxFramework,SIGNAL(currentIndexChanged(int)),this,SLOT(onFrameworkChanged()));
75
80
    connect(m_ui->lineEdit_description,SIGNAL(textChanged(QString)),this,SLOT(setDirty()));
76
81
    connect(m_ui->lineEdit_maintainer,SIGNAL(textChanged(QString)),this,SLOT(setDirty()));