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

Method reload

plugins/clazy/config/checksetmanagewidget.cpp:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void CheckSetManageWidget::reload()
185{
186 if (!m_checkSetSelectionListModel) {
187 return;
188 }
189
190 const int currentIndexBefore = m_ui.checkSetSelect->currentIndex();
191 const QString currentId = m_checkSetSelectionListModel->checkSetSelectionId(currentIndexBefore);
192 m_checkSetSelectionListModel->reload();
193
194 const int currentIndexAfter = m_checkSetSelectionListModel->row(currentId);
195 m_ui.checkSetSelect->setCurrentIndex(currentIndexAfter);
196}
197
198void CheckSetManageWidget::store() const
199{

Callers 2

defaultsMethod · 0.45
resetMethod · 0.45

Calls 4

setCurrentIndexMethod · 0.80
currentIndexMethod · 0.45
checkSetSelectionIdMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected