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

Method setObjectBaseName

ui/propertywidget.cpp:56–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void PropertyWidget::setObjectBaseName(const QString &baseName)
57{
58 Q_ASSERT(m_objectBaseName.isEmpty()); // ideally the object base name would be a ctor argument, but then this doesn't work in Designer anymore
59 m_objectBaseName = baseName;
60
61 if (Endpoint::instance()->objectAddress(baseName + ".controller")
62 == Protocol::InvalidObjectAddress)
63 return; // unknown property controller, likely disabled/not supported on the server
64
65 if (m_controller)
66 disconnect(m_controller, &PropertyControllerInterface::availableExtensionsChanged, this,
67 &PropertyWidget::updateShownTabs);
68 m_controller = ObjectBroker::object<PropertyControllerInterface *>(
69 m_objectBaseName + ".controller");
70 connect(m_controller, &PropertyControllerInterface::availableExtensionsChanged, this, &PropertyWidget::updateShownTabs);
71
72 updateShownTabs();
73}
74
75static void propertyWidgetCleanup()
76{

Callers

nothing calls this directly

Calls 2

objectAddressMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected