MCPcopy Create free account
hub / github.com/davy7125/polyphone / initialize

Method initialize

sources/context/interface/configsectiongeneral.cpp:48–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void ConfigSectionGeneral::initialize()
49{
50 // Audo settings
51 this->initializeAudio();
52
53 // Midi settings
54 this->initializeMidi();
55
56 // Various options
57 ui->checkBoucle->blockSignals(true);
58 ui->checkBoucle->setChecked(ContextManager::configuration()->getValue(ConfManager::SECTION_NONE, "wav_auto_loop", false).toBool());
59 ui->checkBoucle->blockSignals(false);
60
61 ui->checkBlanc->blockSignals(true);
62 ui->checkBlanc->setChecked(ContextManager::configuration()->getValue(ConfManager::SECTION_NONE, "wav_remove_blank", false).toBool());
63 ui->checkBlanc->blockSignals(false);
64
65 // Other configuration that needs to be updated more often
66 showEvent(nullptr);
67}
68
69void ConfigSectionGeneral::showEvent(QShowEvent * event)
70{

Callers

nothing calls this directly

Calls 3

initializeAudioMethod · 0.95
initializeMidiMethod · 0.95
getValueMethod · 0.45

Tested by

no test coverage detected