aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger/qqmldebugservice_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/debugger/qqmldebugservice_p.h')
-rw-r--r--src/qml/debugger/qqmldebugservice_p.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/qml/debugger/qqmldebugservice_p.h b/src/qml/debugger/qqmldebugservice_p.h
index a84237c109..af58168fff 100644
--- a/src/qml/debugger/qqmldebugservice_p.h
+++ b/src/qml/debugger/qqmldebugservice_p.h
@@ -36,6 +36,7 @@
#include <QtCore/qobject.h>
#include <QtCore/qdatastream.h>
+#include <QtCore/qhash.h>
#include <private/qtqmlglobal_p.h>
@@ -73,12 +74,9 @@ public:
void sendMessage(const QByteArray &);
void sendMessages(const QList<QByteArray> &);
+ static const QHash<int, QObject *> &objectsForIds();
static int idForObject(QObject *);
- static QObject *objectForId(int);
- static QList<QObject*> objectForLocationInfo(const QString &filename,
- int lineNumber, int columnNumber);
- static void removeInvalidObjectsFromHash();
- static void clearObjectsFromHash();
+ static QObject *objectForId(int id) { return objectsForIds().value(id); }
static QString objectToString(QObject *obj);