#ifndef PROPERTYVIEW_H #define PROPERTYVIEW_H #include #include #include QT_BEGIN_NAMESPACE class QTreeWidget; class QTreeWidgetItem; class PropertyView : public QWidget { Q_OBJECT public: PropertyView(QWidget *parent = 0); void setObject(const QmlDebugObjectReference &object); const QmlDebugObjectReference &object() const; void updateProperty(const QString &name, const QVariant &value); void setPropertyIsWatched(const QString &name, bool watched); void clear(); signals: void propertyActivated(const QmlDebugPropertyReference &property); private slots: void itemActivated(QTreeWidgetItem *); private: QmlDebugObjectReference m_object; QTreeWidget *m_tree; }; QT_END_NAMESPACE #endif // PROPERTYVIEW_H