Subversion Repositories svn1-original

Rev

Rev 240 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 240 Rev 288
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,6);
25
    QTableWidget *tb = new QTableWidget(config.num_class + 1,8);
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" << "Valid" << "Disq" << "NonEq" << "VetCheck";
29
    labels << "Category" << "Total" << "Valid" << "Disq" << "NonEq" << "VetCheck" << "Comp Ev" << "Comp NE";
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 46... Line 46...
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].valid));
47
            tb->setItem(ii,2, new QmDialogStatusTableItem(data.teamclass[ii+1].valid));
48
            tb->setItem(ii,3, new QmDialogStatusTableItem(data.teamclass[ii+1].disqualified,0));
48
            tb->setItem(ii,3, new QmDialogStatusTableItem(data.teamclass[ii+1].disqualified,0));
49
            tb->setItem(ii,4, new QmDialogStatusTableItem(data.teamclass[ii+1].non_equestrian,0));
49
            tb->setItem(ii,4, new QmDialogStatusTableItem(data.teamclass[ii+1].non_equestrian,0));
50
            tb->setItem(ii,5, new QmDialogStatusTableItem(data.teamclass[ii+1].vet_check,0));
50
            tb->setItem(ii,5, new QmDialogStatusTableItem(data.teamclass[ii+1].vet_check,0));
-
 
51
            tb->setItem(ii,6, new QmDialogStatusTableItem(data.teamclass[ii+1].valid_ev,0));
-
 
52
            tb->setItem(ii,7, new QmDialogStatusTableItem(data.teamclass[ii+1].valid_ne,0));
51
        }
53
        }
52
 
54
 
53
        tb->setItem(ii,0, new QmDialogStatusTableItem("Totals", 1));
55
        tb->setItem(ii,0, new QmDialogStatusTableItem("Totals", 1));
54
        tb->setItem(ii,1, new QmDialogStatusTableItem(data.total.total, 1));
56
        tb->setItem(ii,1, new QmDialogStatusTableItem(data.total.total, 1));
55
        tb->setItem(ii,2, new QmDialogStatusTableItem(data.total.valid, 1));
57
        tb->setItem(ii,2, new QmDialogStatusTableItem(data.total.valid, 1));
56
        tb->setItem(ii,3, new QmDialogStatusTableItem(data.total.disqualified, 1));
58
        tb->setItem(ii,3, new QmDialogStatusTableItem(data.total.disqualified, 1));
57
        tb->setItem(ii,4, new QmDialogStatusTableItem(data.total.non_equestrian, 1));
59
        tb->setItem(ii,4, new QmDialogStatusTableItem(data.total.non_equestrian, 1));
58
        tb->setItem(ii,5, new QmDialogStatusTableItem(data.total.vet_check, 1));
60
        tb->setItem(ii,5, new QmDialogStatusTableItem(data.total.vet_check, 1));
-
 
61
        tb->setItem(ii,6, new QmDialogStatusTableItem(data.total.valid_ev, 1));
-
 
62
        tb->setItem(ii,7, new QmDialogStatusTableItem(data.total.valid_ne, 1));
59
 
63
 
60
        tb->sortItems ( 0, Qt::AscendingOrder );
64
        tb->sortItems ( 0, Qt::AscendingOrder );
61
        tb->setSortingEnabled(true);
65
        tb->setSortingEnabled(true);
62
        tb->resizeColumnsToContents();
66
        tb->resizeColumnsToContents();
63
        tb->resizeRowsToContents();
67
        tb->resizeRowsToContents();