MCPcopy Create free account
hub / github.com/YACReader/yacreader / toggleBoolItem

Method toggleBoolItem

common/themes/theme_editor_dialog.cpp:262–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void ThemeEditorDialog::toggleBoolItem(QTreeWidgetItem *item)
263{
264 const bool newValue = item->text(1) != tr("true");
265 item->setText(1, newValue ? tr("true") : tr("false"));
266 const QStringList path = item->data(0, PathRole).toStringList();
267 setJsonPath(params, path, newValue);
268 emit themeJsonChanged(params);
269}
270
271void ThemeEditorDialog::editNumberItem(QTreeWidgetItem *item)
272{

Callers

nothing calls this directly

Calls 3

textMethod · 0.80
setTextMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected