MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / showEvent

Method showEvent

src/dialogs/MacroRunDialog.cpp:50–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void MacroRunDialog::showEvent(QShowEvent *event)
51{
52 ui->comboBox->clear();
53
54 if (macroManager->hasCurrentUnsavedMacro()) {
55 ui->comboBox->addItem(macroManager->getCurrentMacro()->getName(), QVariant::fromValue(macroManager->getCurrentMacro()));
56 }
57
58 for (Macro *macro : macroManager->availableMacros()) {
59 ui->comboBox->addItem(macro->getName(), QVariant::fromValue(macro));
60 }
61
62 QDialog::showEvent(event);
63}

Callers

nothing calls this directly

Calls 4

getCurrentMacroMethod · 0.80
clearMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected