MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / onHeaderClick

Method onHeaderClick

src/tabstructures.cpp:313–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void TabStructures::onHeaderClick(QTreeView *tree)
314{
315 int& col = (tree == ui->treeStructs) ? sortcols : sortcolq;
316 int section = tree->header()->sortIndicatorSection();
317 if (tree->header()->sortIndicatorOrder() == Qt::AscendingOrder && col == section)
318 {
319 tree->sortByColumn(-1, Qt::DescendingOrder);
320 section = -1;
321 }
322 col = section;
323}
324
325void TabStructures::onAnalysisItemDone(QTreeWidgetItem *item)
326{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected