forked from qt-creator/qt-creator
Added debugging mode for simultaneous QML and C++ debugging
It's not yet possible to attach to an external app running a qml debugging server, because the server is only started on startup if an env variable is set. Changing this requires action from Brisbane, but even the current solution works for C++ apps with QML in them. Task-number: BAUHAUS-585 Reviewed-by: dt
This commit is contained in:
54
src/plugins/qmlinspector/startexternalqmldialog.cpp
Normal file
54
src/plugins/qmlinspector/startexternalqmldialog.cpp
Normal file
@@ -0,0 +1,54 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user