MCPcopy Create free account
hub / github.com/TASEmulators/fceux / cleanButtonCB

Method cleanButtonCB

src/drivers/Qt/HotKeyConf.cpp:473–491  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

471}
472//----------------------------------------------------------------------------
473void HotKeyConfSetDialog_t::cleanButtonCB(void)
474{
475 std::string prefix = "SDL.Hotkeys.";
476 std::string confName;
477
478 confName = prefix + Hotkeys[item->hkIdx].getConfigName();
479
480 g_config->setOption( confName, "");
481
482 setHotKeys();
483
484 if ( item )
485 {
486 item->setText(1, tr(""));
487 }
488
489 done(0);
490 deleteLater();
491}
492//----------------------------------------------------------------------------
493void HotKeyConfSetDialog_t::okButtonCB(void)
494{

Callers

nothing calls this directly

Calls 5

getConfigNameMethod · 0.80
setOptionMethod · 0.80
setTextMethod · 0.80
setHotKeysFunction · 0.70
trFunction · 0.50

Tested by

no test coverage detected