summaryrefslogtreecommitdiffstats
path: root/tools/qmldebugger
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-10-28 05:39:04 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-10-28 05:39:04 (GMT)
commit37314eb9ff900780b8bb952c8fa87f278a634f3a (patch)
treeab2e1b178ace8da2d883885d0f48b064210b8d86 /tools/qmldebugger
parent92b7eea44ed5aa0a1b3b209b913b4039448a51db (diff)
downloadQt-37314eb9ff900780b8bb952c8fa87f278a634f3a.zip
Qt-37314eb9ff900780b8bb952c8fa87f278a634f3a.tar.gz
Qt-37314eb9ff900780b8bb952c8fa87f278a634f3a.tar.bz2
Auto-select first tree item after reload.
Diffstat (limited to 'tools/qmldebugger')
-rw-r--r--tools/qmldebugger/standalone/objecttree.cpp1
-rw-r--r--tools/qmldebugger/standalone/objecttree.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/qmldebugger/standalone/objecttree.cpp b/tools/qmldebugger/standalone/objecttree.cpp
index 4059e77..6c132b6 100644
--- a/tools/qmldebugger/standalone/objecttree.cpp
+++ b/tools/qmldebugger/standalone/objecttree.cpp
@@ -61,6 +61,7 @@ void ObjectTree::objectFetched()
{
dump(m_query->object(), 0);
buildTree(m_query->object(), 0);
+ setCurrentItem(topLevelItem(0));
delete m_query;
m_query = 0;
diff --git a/tools/qmldebugger/standalone/objecttree.h b/tools/qmldebugger/standalone/objecttree.h
index 95820f3..ba2e78f 100644
--- a/tools/qmldebugger/standalone/objecttree.h
+++ b/tools/qmldebugger/standalone/objecttree.h
@@ -27,8 +27,8 @@ signals:
void expressionWatchRequested(const QmlDebugObjectReference &, const QString &);
public slots:
- void reload(int objectDebugId);
- void setCurrentObject(int debugId);
+ void reload(int objectDebugId); // set the root object
+ void setCurrentObject(int debugId); // select an object in the tree
protected:
virtual void mousePressEvent(QMouseEvent *);