Debugger mode for simultaneous QML and C++ debugging (with plugins)

If you have plugins that extend qml, you probably want to debug them
too. This is now possible with the "Start debugging QML and C++
Simultaneously" debug menu entry. Just select a QML project which uses
c++ plugins and start debugging in this mode.
This commit is contained in:
Lasse Holmstedt
2010-04-21 16:22:30 +02:00
parent 3fe1617ac8
commit d6636e4180
8 changed files with 314 additions and 121 deletions

View File

@@ -10,7 +10,7 @@ namespace Internal {
StartExternalQmlDialog::StartExternalQmlDialog(QWidget *parent)
: QDialog(parent), m_ui(new Ui::StartExternalQmlDialog)
: QDialog(parent), m_ui(new Ui::StartExternalQmlDialog), m_debugMode(QmlProjectWithCppPlugins)
{
m_ui->setupUi(this);
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
@@ -50,5 +50,45 @@ void StartExternalQmlDialog::setProjectDisplayName(const QString &projectName)
m_ui->projectDisplayName->setText(projectName);
}
void StartExternalQmlDialog::setQmlViewerPath(const QString &path)
{
m_ui->viewerPathLineEdit->setText(path);
}
QString StartExternalQmlDialog::qmlViewerPath() const
{
return m_ui->viewerPathLineEdit->text();
}
void StartExternalQmlDialog::setQmlViewerArguments(const QString &arguments)
{
m_ui->viewerArgumentsLineEdit->setText(arguments);
}
QString StartExternalQmlDialog::qmlViewerArguments() const
{
return m_ui->viewerArgumentsLineEdit->text();
}
void StartExternalQmlDialog::setDebugMode(DebugMode mode)
{
m_debugMode = mode;
if (m_debugMode == QmlProjectWithCppPlugins) {
m_ui->labelViewerPath->show();
m_ui->viewerPathLineEdit->show();
m_ui->labelViewerArguments->show();
m_ui->viewerArgumentsLineEdit->show();
setMinimumHeight(270);
resize(width(), 270);
} else {
m_ui->labelViewerPath->hide();
m_ui->viewerPathLineEdit->hide();
m_ui->labelViewerArguments->hide();
m_ui->viewerArgumentsLineEdit->hide();
setMinimumHeight(200);
resize(width(), 200);
}
}
} // Internal
} // Qml