| Line 20... |
Line 20... |
| 20 |
|
20 |
|
| 21 |
QVBoxLayout *layout2 = new QVBoxLayout;
|
21 |
QVBoxLayout *layout2 = new QVBoxLayout;
|
| 22 |
gb->setLayout(layout2);
|
22 |
gb->setLayout(layout2);
|
| 23 |
|
23 |
|
| 24 |
// Table Header
|
24 |
// Table Header
|
| 25 |
QTableWidget *tb = new QTableWidget(config.num_class + 1,4);
|
25 |
QTableWidget *tb = new QTableWidget(config.num_class + 1,5);
|
| 26 |
//tb->horizontalHeader()->setStretchLastSection(true);
|
26 |
//tb->horizontalHeader()->setStretchLastSection(true);
|
| 27 |
tb->horizontalHeader()->setSortIndicatorShown(true);
|
27 |
tb->horizontalHeader()->setSortIndicatorShown(true);
|
| 28 |
QStringList labels;
|
28 |
QStringList labels;
|
| 29 |
labels << "Category" << "Total" << "Disq" << "NonEq";
|
29 |
labels << "Category" << "Total" << "Disq" << "NonEq" << "VetCheck";
|
| 30 |
tb->setHorizontalHeaderLabels(labels);
|
30 |
tb->setHorizontalHeaderLabels(labels);
|
| 31 |
tb->verticalHeader()->setDefaultSectionSize(17);
|
31 |
tb->verticalHeader()->setDefaultSectionSize(17);
|
| 32 |
tb->setSortingEnabled(false);
|
32 |
tb->setSortingEnabled(false);
|
| 33 |
tb->setAlternatingRowColors(true);
|
33 |
tb->setAlternatingRowColors(true);
|
| 34 |
layout2->addWidget(tb);
|
34 |
layout2->addWidget(tb);
|
| Line 44... |
Line 44... |
| 44 |
{
|
44 |
{
|
| 45 |
tb->setItem(ii,0, new QmDialogStatusTableItem(config.team_class[ii].full_name));
|
45 |
tb->setItem(ii,0, new QmDialogStatusTableItem(config.team_class[ii].full_name));
|
| 46 |
tb->setItem(ii,1, new QmDialogStatusTableItem(data.teamclass[ii+1].total));
|
46 |
tb->setItem(ii,1, new QmDialogStatusTableItem(data.teamclass[ii+1].total));
|
| 47 |
tb->setItem(ii,2, new QmDialogStatusTableItem(data.teamclass[ii+1].disqualified,0));
|
47 |
tb->setItem(ii,2, new QmDialogStatusTableItem(data.teamclass[ii+1].disqualified,0));
|
| 48 |
tb->setItem(ii,3, new QmDialogStatusTableItem(data.teamclass[ii+1].non_equestrian,0));
|
48 |
tb->setItem(ii,3, new QmDialogStatusTableItem(data.teamclass[ii+1].non_equestrian,0));
|
| - |
|
49 |
tb->setItem(ii,4, new QmDialogStatusTableItem(data.teamclass[ii+1].vet_check,0));
|
| 49 |
}
|
50 |
}
|
| 50 |
|
51 |
|
| 51 |
tb->setItem(ii,0, new QmDialogStatusTableItem("Totals", 1));
|
52 |
tb->setItem(ii,0, new QmDialogStatusTableItem("Totals", 1));
|
| 52 |
tb->setItem(ii,1, new QmDialogStatusTableItem(data.total.total, 1));
|
53 |
tb->setItem(ii,1, new QmDialogStatusTableItem(data.total.total, 1));
|
| 53 |
tb->setItem(ii,2, new QmDialogStatusTableItem(data.total.disqualified, 1));
|
54 |
tb->setItem(ii,2, new QmDialogStatusTableItem(data.total.disqualified, 1));
|
| 54 |
tb->setItem(ii,3, new QmDialogStatusTableItem(data.total.non_equestrian, 1));
|
55 |
tb->setItem(ii,3, new QmDialogStatusTableItem(data.total.non_equestrian, 1));
|
| - |
|
56 |
tb->setItem(ii,4, new QmDialogStatusTableItem(data.total.vet_check, 1));
|
| 55 |
|
57 |
|
| 56 |
tb->sortItems ( 0, Qt::AscendingOrder );
|
58 |
tb->sortItems ( 0, Qt::AscendingOrder );
|
| 57 |
tb->setSortingEnabled(true);
|
59 |
tb->setSortingEnabled(true);
|
| 58 |
tb->resizeColumnsToContents();
|
60 |
tb->resizeColumnsToContents();
|
| 59 |
tb->resizeRowsToContents();
|
61 |
tb->resizeRowsToContents();
|