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

Method SetDebugState

source/ui/EditUi.cpp:1182–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1180 {
1181 const QString name = object->objectName();
1182 const QString class_name = object->metaObject()->className();
1183 if (name.indexOf("_label") != -1 && class_name == "QLabel") lang_trans_t(reinterpret_cast<QLabel*>(object));
1184 else if (name.indexOf("_check") != -1 && class_name == "QCheckBox") lang_trans_t(reinterpret_cast<QCheckBox*>(object));
1185 else if (name.indexOf("_radio") != -1 && class_name == "QRadioButton") lang_trans_t(reinterpret_cast<QRadioButton*>(object));
1186 else if (name.indexOf("_edit") != -1 && class_name == "QLineEdit") lang_trans_pht(reinterpret_cast<QLineEdit*>(object));
1187 else if (name.indexOf("_button") != -1 && class_name == "QPushButton") lang_trans_t(reinterpret_cast<QPushButton*>(object));
1188 }
1189 };
1190 BindSafeIter(bind_type_group, trans);
1191 trans(ui.grp_window, 0);
1192 trans(ui.grp_rec, 0);
1193}
1194
1195
1196void EditUi::Disable(bool disable)
1197{
1198 ui.action_running_radio->setDisabled(disable);
1199 ui.action_ending_radio->setDisabled(disable);
1200 ui.title_close_button->setDisabled(disable);
1201 ui.title_back_button->setDisabled(disable);
1202 ui.content_widget->setDisabled(disable);
1203}
1204void EditUi::DisableTip(bool disable)
1205{

Callers

nothing calls this directly

Calls 1

setStyleSheetMethod · 0.45

Tested by

no test coverage detected