MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / initConnection

Method initConnection

src/plugins/builder/mainframe/settingdialog.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void SettingDialog::initConnection()
76{
77 connect(promptCB, &QComboBox::currentTextChanged, this,
78 [this] {
79 promptEdit->setPlainText(promptCB->currentData().toString());
80 bool isDefault = promptCB->currentIndex() == 0;
81 delBtn->setEnabled(!isDefault);
82 promptEdit->setReadOnly(isDefault);
83 });
84 connect(addBtn, &QPushButton::clicked, this, &SettingDialog::handleAddPrompt);
85 connect(delBtn, &QPushButton::clicked, this, &SettingDialog::handleDeletePrompt);
86}
87
88void SettingDialog::updateSettings()
89{

Callers

nothing calls this directly

Calls 5

connectFunction · 0.85
toStringMethod · 0.45
currentIndexMethod · 0.45
setEnabledMethod · 0.45
setReadOnlyMethod · 0.45

Tested by

no test coverage detected