Subversion Repositories svn1

Rev

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

Rev 170 Rev 176
Line 69... Line 69...
69
 
69
 
70
         // Extract Team Cat
70
         // Extract Team Cat
71
         QTableWidgetItem *item = new QTableWidgetItem( parts.value(0)) ;
71
         QTableWidgetItem *item = new QTableWidgetItem( parts.value(0)) ;
72
         ui->tableWidget->setItem(ii, 2, item );
72
         ui->tableWidget->setItem(ii, 2, item );
73
 
73
 
74
        if (lookup_class(qPrintable(parts.value(0)), &config ) <= 0 )
74
        if (config.lookup_class(qPrintable(parts.value(0)) ) <= 0 )
75
        {
75
        {
76
            item->setBackgroundColor(QColor(200,0,0,50));
76
            item->setBackgroundColor(QColor(200,0,0,50));
77
            bad_cat++;
77
            bad_cat++;
78
        }
78
        }
79
        parts.removeFirst();
79
        parts.removeFirst();
Line 147... Line 147...
147
 
147
 
148
                // Category
148
                // Category
149
                item = ui->tableWidget->item(ii,2);
149
                item = ui->tableWidget->item(ii,2);
150
                if (item)
150
                if (item)
151
                {
151
                {
152
                    int category = lookup_class(qPrintable(item->data(Qt::EditRole).toString()), &config );
152
                    int category = config.lookup_class(qPrintable(item->data(Qt::EditRole).toString()) );
153
                    if (category)
153
                    if (category)
154
                    {
154
                    {
155
                        team_buf.teamclass = category;
155
                        team_buf.teamclass = category;
156
                    }
156
                    }
157
                    else
157
                    else