forked from robertknight/Qt-Inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectInspector.h
More file actions
40 lines (28 loc) · 720 Bytes
/
ObjectInspector.h
File metadata and controls
40 lines (28 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include "lib/ObjectProxy.h"
#include <QWidget>
class QLabel;
class QLineEdit;
class QTableView;
class QSortFilterProxyModel;
class ObjectPropertyModel;
class ObjectInspector : public QWidget
{
Q_OBJECT
public:
ObjectInspector(QWidget* parent);
void setObject(ObjectProxy::Pointer object);
ObjectProxy::Pointer object() const;
static QString formatAddress(void* ptr);
public Q_SLOTS:
void refresh();
private Q_SLOTS:
void changeFilter(const QString& pattern);
private:
QLabel* m_nameLabel;
QTableView* m_propertyView;
ObjectProxy::Pointer m_currentObject;
ObjectPropertyModel* m_model;
QSortFilterProxyModel* m_propertySortModel;
QLineEdit* m_propertyFilterEdit;
};