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

Method StyleGroup

source/ui/SettingsUi.cpp:227–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 Qi::application->setStyleSheet(Qi::ui.themes[Qi::set.theme].style);
226 QiJson::SaveJson();
227 }});
228 connect(ui.macro_save_combo, &QComboBox::currentIndexChanged, this, [this](int index) {
229 if (index >= 0 && index != Qi::set.save_type)
230 {
231 Qi::set.save_type = index;
232 QiJson::SaveJson();
233 }
234 });
235 connect(ui.stateKey_keyedit, &QKeyEdit::changed, this, [this] {
236 QKeyEditKeys keys = ui.stateKey_keyedit->keys();
237 Qi::set.key1 = Qi::set.key2 = 0;
238 if (!keys.isEmpty()) Qi::set.key1 = keys.at(0);
239 if (keys.size() > 1) Qi::set.key2 = keys.at(1);
240 if (keys.size() == 1 && keys.at(0) == VK_LBUTTON)
241 {
242 ui.stateKey_keyedit->setKey(VK_F8);
243 Qi::set.key1 = VK_F8;
244 Qi::set.key2 = 0;
245 }
246 QiJson::SaveJson();
247 });
248 connect(ui.recordKey_keyedit, &QKeyEdit::changed, this, [this] {
249 QKeyEditKey key = ui.recordKey_keyedit->key();
250 Qi::set.recKey = key;
251 if (key == VK_LBUTTON)
252 {
253 ui.recordKey_keyedit->setKey(VK_F8);
254 Qi::set.recKey = VK_F8;
255 }
256 QiJson::SaveJson();
257 });

Callers

nothing calls this directly

Calls 1

setStyleSheetMethod · 0.45

Tested by

no test coverage detected