Subversion Repositories svn1

Rev

Rev 164 | Rev 166 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 164 Rev 165
Line 22... Line 22...
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,4);
26
    //tb->horizontalHeader()->setStretchLastSection(true);
26
    //tb->horizontalHeader()->setStretchLastSection(true);
27
    tb->horizontalHeader()->setAlternatingRowColors(true);
-
 
28
    tb->horizontalHeader()->setSortIndicatorShown(true);
27
    tb->horizontalHeader()->setSortIndicatorShown(true);
29
    QStringList labels;
28
    QStringList labels;
30
    labels << "Category" << "Total" << "Disq" << "NonEq";
29
    labels << "Category" << "Total" << "Disq" << "NonEq";
31
    tb->setHorizontalHeaderLabels(labels);
30
    tb->setHorizontalHeaderLabels(labels);
32
    tb->verticalHeader()->setDefaultSectionSize(17);
31
    tb->verticalHeader()->setDefaultSectionSize(17);
33
    tb->setSortingEnabled(false);
32
    tb->setSortingEnabled(false);
-
 
33
    tb->setAlternatingRowColors(true);
34
    layout2->addWidget(tb);
34
    layout2->addWidget(tb);
35
 
35
 
36
    if( load_report_data() )
36
    if( load_report_data() )
37
    {
37
    {
38
        t_class_summary data;
38
        t_class_summary data;
Line 55... Line 55...
55
 
55
 
56
        tb->sortItems ( 0, Qt::AscendingOrder );
56
        tb->sortItems ( 0, Qt::AscendingOrder );
57
        tb->setSortingEnabled(true);
57
        tb->setSortingEnabled(true);
58
        tb->resizeColumnsToContents();
58
        tb->resizeColumnsToContents();
59
        tb->resizeRowsToContents();
59
        tb->resizeRowsToContents();
-
 
60
 
60
    }
61
    }
61
}
62
}
62
 
63
 
63
QmDialogStatusTableItem::QmDialogStatusTableItem ( const QString & text, int type ) :  QTableWidgetItem(text, type+QTableWidgetItem::UserType)
64
QmDialogStatusTableItem::QmDialogStatusTableItem ( const QString & text, int type ) :  QTableWidgetItem(text, type+QTableWidgetItem::UserType)
64
{
65
{