| 23 | #include <cassert> |
| 24 | |
| 25 | WidgetSettingGroup::WidgetSettingGroup(QTreeWidget* tree, QTreeWidgetItem* item, const SettingMetaGroup& meta, |
| 26 | SettingDataSet& data_set) |
| 27 | : WidgetSettingBase(tree, item), meta(meta), data_set(data_set) { |
| 28 | this->item->setText(0, GetLabel(meta).c_str()); |
| 29 | this->item->setToolTip(0, meta.description.c_str()); |
| 30 | this->item->setFont(0, tree->font()); |
| 31 | |
| 32 | this->item->setSizeHint(0, QSize(0, ITEM_HEIGHT)); |
| 33 | this->tree->setItemWidget(this->item, 0, this); |
| 34 | |
| 35 | this->Refresh(REFRESH_ENABLE_AND_STATE); |
| 36 | } |
| 37 | |
| 38 | void WidgetSettingGroup::Refresh(RefreshAreas refresh_areas) { |
| 39 | (void)refresh_areas; |