forked from qt-creator/qt-creator
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).
This commit is contained in:
34
src/plugins/qmlprofiler/qmlprofilerattachdialog.h
Normal file
34
src/plugins/qmlprofiler/qmlprofilerattachdialog.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef QMLPROFILERATTACHDIALOG_H
|
||||
#define QMLPROFILERATTACHDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user