MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / Reload

Method Reload

source/ui/EditUi.cpp:1218–1238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1216 QDialog::setWindowTitle(title);
1217 ui.title_label->setText(title);
1218}
1219void EditUi::SetTabCurrent(int index)
1220{
1221 ui.tab_stacked_widget->setCurrentIndex(index);
1222 BindSafeIter(bind_tab_button, [this, index](QPushButton* p, size_t i) { index == i ? p->setDisabled(true) : p->setEnabled(true); });
1223}
1224void EditUi::SetGroupCurrent(QiType type)
1225{
1226 BindSafeIter(bind_type_group, [this, type](QGroupBox* p, size_t i) {
1227 if (i == static_cast<size_t>(type)) p->setStyleSheet("QGroupBox{border:1px solid red;border-radius:5px}");
1228 else p->setStyleSheet("QGroupBox{border:1px solid gray;border-radius:5px}");
1229 });
1230}
1231void EditUi::SetEditCurrent(QiType type)
1232{
1233 BindSafeIter(bind_edt_button, [this, type](QPushButton* p, size_t i) {
1234 if (i == static_cast<size_t>(type)) p->setEnabled(true);
1235 else p->setDisabled(true);
1236 });
1237 BindSafeIter(bind_edt2_button, [this, type](QPushButton* p, size_t i) {
1238 if (i == static_cast<size_t>(type)) p->setEnabled(true);
1239 else p->setDisabled(true);
1240 });
1241}

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected