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

Method initConnections

src/plugins/binarytools/widgets/iconcombobox.cpp:195–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void IconComboBox::initConnections()
196{
197 connect(iconView->selectionModel(), &QItemSelectionModel::selectionChanged, this,
198 [this](const QItemSelection &selected, const QItemSelection &deselected) {
199 QModelIndexList selectedIndexes = selected.indexes();
200 if (!selectedIndexes.isEmpty()) {
201 auto icon = iconModel.data(selectedIndexes.first()).toString();
202 if (!icon.isEmpty())
203 iconName = icon;
204 }
205
206 if (iconFrame->isVisible())
207 iconFrame->hide();
208 });
209}
210
211void IconComboBox::showPopup()
212{

Callers

nothing calls this directly

Calls 6

connectFunction · 0.85
isVisibleMethod · 0.80
isEmptyMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45
hideMethod · 0.45

Tested by

no test coverage detected