| 217 | |
| 218 | |
| 219 | TabStructures::TabStructures(MainWindow *parent) |
| 220 | : QWidget(parent) |
| 221 | , ui(new Ui::TabStructures) |
| 222 | , parent(parent) |
| 223 | , thread(this) |
| 224 | , sortcols(-1) |
| 225 | , sortcolq(-1) |
| 226 | , nextupdate() |
| 227 | , updt(100) |
| 228 | { |
| 229 | ui->setupUi(this); |
| 230 | |
| 231 | ui->treeStructs->sortByColumn(-1, Qt::AscendingOrder); |
| 232 | connect(ui->treeStructs->header(), &QHeaderView::sectionClicked, this, [=](){ onHeaderClick(ui->treeStructs); } ); |
| 233 | |
| 234 | ui->treeQuads->setColumnWidth(0, 160); |
| 235 | ui->treeQuads->sortByColumn(-1, Qt::AscendingOrder); |
| 236 | connect(ui->treeQuads->header(), &QHeaderView::sectionClicked, this, [=](){ onHeaderClick(ui->treeQuads); } ); |
| 237 | |
| 238 | connect(&thread, &AnalysisStructures::itemDone, this, &TabStructures::onAnalysisItemDone, Qt::BlockingQueuedConnection); |
| 239 | connect(&thread, &AnalysisStructures::quadDone, this, &TabStructures::onAnalysisQuadDone, Qt::BlockingQueuedConnection); |
| 240 | connect(&thread, &AnalysisStructures::finished, this, &TabStructures::onAnalysisFinished); |
| 241 | |
| 242 | connect(ui->treeStructs, &QTreeWidget::itemClicked, this, &TabStructures::onTreeItemClicked); |
| 243 | connect(ui->treeQuads, &QTreeWidget::itemClicked, this, &TabStructures::onTreeItemClicked); |
| 244 | } |
| 245 | |
| 246 | TabStructures::~TabStructures() |
| 247 | { |
nothing calls this directly
no outgoing calls
no test coverage detected