| 260 | } |
| 261 | |
| 262 | void 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 | |
| 271 | void ThemeEditorDialog::editNumberItem(QTreeWidgetItem *item) |
| 272 | { |