aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler/commandlistener.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmlprofiler/commandlistener.h')
-rw-r--r--tools/qmlprofiler/commandlistener.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/tools/qmlprofiler/commandlistener.h b/tools/qmlprofiler/commandlistener.h
index 7d4d43d727..e74d5323c8 100644
--- a/tools/qmlprofiler/commandlistener.h
+++ b/tools/qmlprofiler/commandlistener.h
@@ -36,20 +36,13 @@
#include <QtCore/QThread>
-class CommandListener : public QThread
-{
+class CommandListener : public QObject {
Q_OBJECT
-public:
- CommandListener(QObject *parent = 0);
+public slots:
+ void readCommand();
- void run();
-
- void requestStop() { m_stopRequested = true; }
signals:
void command(const QString &command);
-
-private:
- bool m_stopRequested;
};
#endif // COMMANDLISTENER_H