MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / WidgetSettingGroup

Method WidgetSettingGroup

vkconfig_gui/widget_setting_group.cpp:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <cassert>
24
25WidgetSettingGroup::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
38void WidgetSettingGroup::Refresh(RefreshAreas refresh_areas) {
39 (void)refresh_areas;

Callers

nothing calls this directly

Calls 2

RefreshMethod · 0.95
GetLabelFunction · 0.70

Tested by

no test coverage detected