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

Method isCheckable

Src/CheckBoxHeader.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool CCheckBoxHeader::isCheckable(int index) const
89{
90 QStandardItemModel* pModel = qobject_cast<QStandardItemModel*>(this->model());
91 if(pModel) {
92 QStandardItem* item = nullptr;
93 if(orientation() == Qt::Horizontal)
94 item = pModel->horizontalHeaderItem(index);
95 else
96 item = pModel->verticalHeaderItem(index);
97 return item && item->isCheckable();
98 }
99
100 return m_CheckableSections.contains(index);
101}
102
103QRect CCheckBoxHeader::CheckboxRect(const QRect &sectionRect) const
104{

Callers 4

SetCheckStateMethod · 0.80
GetCheckStateMethod · 0.80
slotFilterItemChangedMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected