MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / update_mode_icon

Method update_mode_icon

DSView/pv/toolbars/samplingbar.cpp:1257–1267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1255 }
1256
1257 void SamplingBar::update_mode_icon()
1258 {
1259 QString iconPath = GetIconPath();
1260
1261 if (_session->is_repeat_mode())
1262 _mode_button.setIcon(QIcon(iconPath + REPEAT_ACTION_ICON));
1263 else if (_session->is_loop_mode())
1264 _mode_button.setIcon(QIcon(iconPath + LOOP_ACTION_ICON));
1265 else
1266 _mode_button.setIcon(QIcon(iconPath + SINGLE_ACTION_ICON));
1267 }
1268
1269 void SamplingBar::run_or_stop()
1270 {

Callers

nothing calls this directly

Calls 3

GetIconPathFunction · 0.85
is_repeat_modeMethod · 0.80
is_loop_modeMethod · 0.80

Tested by

no test coverage detected