MCPcopy Create free account
hub / github.com/KDE/kdevelop / removeSelectedCheckSetSelection

Method removeSelectedCheckSetSelection

plugins/clazy/config/checksetmanagewidget.cpp:260–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260void CheckSetManageWidget::removeSelectedCheckSetSelection()
261{
262 const int selectedCheckSetSelectionIndex = m_ui.checkSetSelect->currentIndex();
263
264 if (selectedCheckSetSelectionIndex == -1) {
265 return;
266 }
267
268 m_checkSetSelectionListModel->removeCheckSetSelection(selectedCheckSetSelectionIndex);
269
270 const int defaultCheckSetSelectionIndex = m_checkSetSelectionListModel->defaultCheckSetSelectionRow();
271 m_ui.checkSetSelect->setCurrentIndex(defaultCheckSetSelectionIndex);
272}
273
274void CheckSetManageWidget::onDefaultCheckSetSelectionChanged(const QString& checkSetSelectionId)
275{

Callers

nothing calls this directly

Calls 4

setCurrentIndexMethod · 0.80
currentIndexMethod · 0.45

Tested by

no test coverage detected