MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / update

Method update

gui/src/infopage.cpp:53–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void InfoPage::update(QString key, QString value)
54{
55 if(!m_advancedMode) {
56 if(keyMap.contains(key)) {
57 key = keyMap[key];
58 } else {
59 return;
60 }
61 }
62 if(!map.contains(key)) {
63 map.insert(key, value);
64 InfoPageKeyValueWidget *w = new InfoPageKeyValueWidget(key, value, this);
65 w->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
66 wmap.insert(key, w);
67 lay->addWidget(w);
68
69 } else {
70 map[key] = value;
71 wmap[key]->updateValue(value);
72 }
73}
74
75void InfoPage::clear()
76{

Callers 3

setupPlotInfoMethod · 0.45
setStyleMethod · 0.45
setupInfoPageMethod · 0.45

Calls 3

containsMethod · 0.45
addWidgetMethod · 0.45
updateValueMethod · 0.45

Tested by

no test coverage detected