From 12a02c75341745777487574775b299193af6c2d7 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 4 Apr 2011 15:03:31 +0200 Subject: QmlProfiler: Add attach/detach menu entry This allows one to also profile apps on device (as long as there is a working TCP/IP connection). --- src/plugins/qmlprofiler/qmlprofilerattachdialog.h | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/plugins/qmlprofiler/qmlprofilerattachdialog.h (limited to 'src/plugins/qmlprofiler/qmlprofilerattachdialog.h') diff --git a/src/plugins/qmlprofiler/qmlprofilerattachdialog.h b/src/plugins/qmlprofiler/qmlprofilerattachdialog.h new file mode 100644 index 0000000000..ac85df7918 --- /dev/null +++ b/src/plugins/qmlprofiler/qmlprofilerattachdialog.h @@ -0,0 +1,34 @@ +#ifndef QMLPROFILERATTACHDIALOG_H +#define QMLPROFILERATTACHDIALOG_H + +#include + +namespace QmlProfiler { +namespace Internal { + +namespace Ui { + class QmlProfilerAttachDialog; +} + +class QmlProfilerAttachDialog : public QDialog +{ + Q_OBJECT + +public: + explicit QmlProfilerAttachDialog(QWidget *parent = 0); + ~QmlProfilerAttachDialog(); + + QString address() const; + uint port() const; + + void setAddress(const QString &address); + void setPort(uint port); + +private: + Ui::QmlProfilerAttachDialog *ui; +}; + +} // namespace Internal +} // namespace QmlProfiler + +#endif // QMLPROFILERATTACHDIALOG_H -- cgit v1.2.1