MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / slotFilterItemChanged

Method slotFilterItemChanged

Src/FrmManagePlugins.cpp:302–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void CFrmManagePlugins::slotFilterItemChanged(QStandardItem *item)
303{
304 qDebug(log) << Q_FUNC_INFO;
305 if(!m_pModelFilter) return;
306 if(!item) return;
307 if(!item->isCheckable()) return;
308 for(int i = 0; i < m_pModelFilter->rowCount(); i++) {
309 if(i == item->row()) continue;
310 auto state = m_pModelFilter->item(i, item->column())->checkState();
311 if(state != item->checkState()) {
312 m_pModelFilter->horizontalHeaderItem(item->column())->setCheckState(Qt::PartiallyChecked);
313 return;
314 }
315 }
316 m_pModelFilter->horizontalHeaderItem(item->column())->setCheckState(item->checkState());
317}

Callers

nothing calls this directly

Calls 2

isCheckableMethod · 0.80
rowCountMethod · 0.45

Tested by

no test coverage detected