forked from qt-creator/qt-creator
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
|
|
#include "startexternalqmldialog.h"
|
||
|
|
#include "ui_startexternalqmldialog.h"
|
||
|
|
|
||
|
|
#include <utils/pathchooser.h>
|
||
|
|
#include <QPushButton>
|
||
|
|
|
||
|
|
|
||
|
|
namespace Qml {
|
||
|
|
namespace Internal {
|
||
|
|
|
||
|
|
|
||
|
|
StartExternalQmlDialog::StartExternalQmlDialog(QWidget *parent)
|
||
|
|
: QDialog(parent), m_ui(new Ui::StartExternalQmlDialog)
|
||
|
|
{
|
||
|
|
m_ui->setupUi(this);
|
||
|
|
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
|
||
|
|
m_ui->projectDisplayName->setText(tr("<No project>"));
|
||
|
|
|
||
|
|
connect(m_ui->buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
|
||
|
|
connect(m_ui->buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||
|
|
}
|
||
|
|
|
||
|
|
StartExternalQmlDialog::~StartExternalQmlDialog()
|
||
|
|
{
|
||
|
|
delete m_ui;
|
||
|
|
}
|
||
|
|
|
||
|
|
void StartExternalQmlDialog::setDebuggerUrl(const QString &str)
|
||
|
|
{
|
||
|
|
m_ui->urlLine->setText(str);
|
||
|
|
}
|
||
|
|
|
||
|
|
QString StartExternalQmlDialog::debuggerUrl() const
|
||
|
|
{
|
||
|
|
return m_ui->urlLine->text();
|
||
|
|
}
|
||
|
|
|
||
|
|
void StartExternalQmlDialog::setPort(quint16 str)
|
||
|
|
{
|
||
|
|
m_ui->portSpinBox->setValue(str);
|
||
|
|
}
|
||
|
|
|
||
|
|
quint16 StartExternalQmlDialog::port() const
|
||
|
|
{
|
||
|
|
return m_ui->portSpinBox->value();
|
||
|
|
}
|
||
|
|
|
||
|
|
void StartExternalQmlDialog::setProjectDisplayName(const QString &projectName)
|
||
|
|
{
|
||
|
|
m_ui->projectDisplayName->setText(projectName);
|
||
|
|
}
|
||
|
|
|
||
|
|
} // Internal
|
||
|
|
} // Qml
|