Subversion Repositories svn1

Rev

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

Rev 284 Rev 310
Line 64... Line 64...
64
        tb->sortItems ( 0, Qt::AscendingOrder );
64
        tb->sortItems ( 0, Qt::AscendingOrder );
65
        tb->setSortingEnabled(true);
65
        tb->setSortingEnabled(true);
66
        tb->resizeColumnsToContents();
66
        tb->resizeColumnsToContents();
67
        tb->resizeRowsToContents();
67
        tb->resizeRowsToContents();
68
 
68
 
69
        // Kludge. It not corrcet, but it does size the screen
69
        // Kludge. It not correct, but it does size the screen
70
        resize(tb->viewport()->size());
70
        resize(tb->viewport()->size());
71
    }
71
    }
72
}
72
}
73
 
73
 
74
QmDialogStatusTableItem::QmDialogStatusTableItem ( const QString & text, int type ) :  QTableWidgetItem(text, type+QTableWidgetItem::UserType)
74
QmDialogStatusTableItem::QmDialogStatusTableItem ( const QString & text, int type ) :  QTableWidgetItem(text, type+QTableWidgetItem::UserType)
Line 78... Line 78...
78
{
78
{
79
    setData(0,value);
79
    setData(0,value);
80
}
80
}
81
 
81
 
82
// Returns true if the item is less than the other item; otherwise returns false.
82
// Returns true if the item is less than the other item; otherwise returns false.
83
// Ensure that marked rowas are sorted as 'always' highest
83
// Ensure that marked rows are sorted as 'always' highest
84
bool QmDialogStatusTableItem::operator< ( const QTableWidgetItem & other ) const
84
bool QmDialogStatusTableItem::operator< ( const QTableWidgetItem & other ) const
85
{
85
{
86
    if (type() != QTableWidgetItem::UserType )
86
    if (type() != QTableWidgetItem::UserType )
87
    {
87
    {
88
        return (false);
88
        return (false);