MCPcopy Create free account
hub / github.com/chris2511/xca / initHeaderView

Method initHeaderView

lib/db_base.cpp:198–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void db_base::initHeaderView(QHeaderView *hv)
199{
200 int max = allHeaders.count();
201 colResizeStart();
202 for (int i=0; i<max; i++) {
203 allHeaders[i]->setupHeaderView(i, hv);
204 }
205 for (int i=0; i<max; i++) {
206 if (allHeaders[i]->visualIndex == -1)
207 continue;
208 if (hv->visualIndex(i) != allHeaders[i]->visualIndex) {
209 hv->moveSection(hv->visualIndex(i),
210 allHeaders[i]->visualIndex);
211 }
212 }
213 colResizeEnd();
214}
215
216void db_base::sortIndicatorChanged(int logicalIndex, Qt::SortOrder order)
217{

Callers 1

setModelMethod · 0.80

Calls 1

setupHeaderViewMethod · 0.80

Tested by

no test coverage detected