MCPcopy Create free account
hub / github.com/KDAB/GammaRay / objectSelectionChanged

Method objectSelectionChanged

core/tools/metaobjectbrowser/metaobjectbrowser.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void MetaObjectBrowser::objectSelectionChanged(const QItemSelection &selection)
72{
73 QModelIndex index;
74 if (selection.size() == 1)
75 index = selection.first().topLeft();
76
77 if (index.isValid()) {
78 const QMetaObject *metaObject = index.data(QMetaObjectModel::MetaObjectRole).value<const QMetaObject *>();
79 m_propertyController->setMetaObject(metaObject);
80 } else {
81 m_propertyController->setMetaObject(nullptr);
82 }
83}
84
85void MetaObjectBrowser::qobjectSelected(QObject *obj)
86{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
isValidMethod · 0.45
dataMethod · 0.45
setMetaObjectMethod · 0.45

Tested by

no test coverage detected