| 1066 | } |
| 1067 | |
| 1068 | void WidgetSettings::saveTreeCheckState(const QTreeView* tv, int role) |
| 1069 | { |
| 1070 | QVariantList data; |
| 1071 | for (auto index : flatIndex(tv->model())) { |
| 1072 | data.append(index.data(role)); |
| 1073 | } |
| 1074 | set(m_Settings, "Widgets", indexSettingName(tv), data); |
| 1075 | } |
| 1076 | |
| 1077 | void WidgetSettings::restoreTreeCheckState(QTreeView* tv, int role) const |
| 1078 | { |