QmlProfiling: Attach to QML application

Redo the Attach dialog to use Kits. This is in sync with
the Valgrind Attach dialog.

Change-Id: Iaf0c8bc2c5a912b6a93ed21b9757a074a60041c0
Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
This commit is contained in:
Aurindam Jana
2013-04-26 10:23:14 +02:00
parent cb02e45b4a
commit 22fcb71a8e
5 changed files with 82 additions and 52 deletions

View File

@@ -32,13 +32,13 @@
#include <QDialog>
namespace Core { class Id; }
namespace ProjectExplorer { class Kit; }
namespace QmlProfiler {
namespace Internal {
namespace Ui {
class QmlProfilerAttachDialog;
}
class QmlProfilerAttachDialogPrivate;
class QmlProfilerAttachDialog : public QDialog
{
Q_OBJECT
@@ -47,16 +47,14 @@ public:
explicit QmlProfilerAttachDialog(QWidget *parent = 0);
~QmlProfilerAttachDialog();
QString address() const;
uint port() const;
QString sysroot() const;
int port() const;
void setPort(const int port);
void setAddress(const QString &address);
void setPort(uint port);
void setSysroot(const QString &sysroot);
ProjectExplorer::Kit *kit() const;
void setKitId(const Core::Id &id);
private:
Ui::QmlProfilerAttachDialog *ui;
QmlProfilerAttachDialogPrivate *d;
};
} // namespace Internal