forked from qt-creator/qt-creator
QmlProfiler: Cosmetics
Avoid using remote/local as (not user visible) names. 'internal' means 'whatever the current target does', i.e. could be a remote setup, 'external' means 'attach to something running or waiting. Also user setServerUrl() directly on the worker, no need go through the 'opaque connection' mechanism here. Change-Id: Id0e694562ce7d3129c7d0b790c91d465de24b4e4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -28,10 +28,11 @@
|
||||
#include <projectexplorer/kitchooser.h>
|
||||
#include <coreplugin/id.h>
|
||||
|
||||
#include <QSpinBox>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QFormLayout>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QSpinBox>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
@@ -63,11 +64,20 @@ QmlProfilerAttachDialog::QmlProfilerAttachDialog(QWidget *parent) :
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
|
||||
|
||||
QLabel *hint = new QLabel(this);
|
||||
hint->setWordWrap(true);
|
||||
hint->setTextFormat(Qt::RichText);
|
||||
hint->setText(tr("Select an externally started QML-debug enabled application.<p>"
|
||||
"Commonly used command-line arguments are:")
|
||||
+ "<p><tt>-qmljsdebugger=port:<port>,host:<host>,block,</tt><br>"
|
||||
"<tt> <tt> services:EngineControl,DebugMessages[,...]</tt><p>");
|
||||
|
||||
QFormLayout *formLayout = new QFormLayout();
|
||||
formLayout->addRow(tr("Kit:"), d->kitChooser);
|
||||
formLayout->addRow(tr("&Port:"), d->portSpinBox);
|
||||
|
||||
QVBoxLayout *verticalLayout = new QVBoxLayout(this);
|
||||
verticalLayout->addWidget(hint);
|
||||
verticalLayout->addLayout(formLayout);
|
||||
verticalLayout->addWidget(buttonBox);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user