MCPcopy Create free account
hub / github.com/GENIVI/CANdevStudio / setCaption

Method setCaption

src/common/componentmodel.h:101–109  ·  view source on GitHub ↗

* @brief Sets model caption and updates widget title. * @param caption new caption */

Source from the content-addressed store, hash-verified

99 * @param caption new caption
100 */
101 virtual void setCaption(const QString& caption) override
102 {
103 _caption = caption;
104
105 auto w = _component.mainWidget();
106 if (w) {
107 w->setWindowTitle(_caption);
108 }
109 }
110
111 /**
112 * @brief Used to identify model by data model name

Callers 2

openPropertiesMethod · 0.80

Calls 1

mainWidgetMethod · 0.45

Tested by

no test coverage detected