Subversion Repositories svn1-original

Rev

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

Rev 283 Rev 318
Line 108... Line 108...
108
            if ( item->data(Qt::UserRole + 1).toBool() )
108
            if ( item->data(Qt::UserRole + 1).toBool() )
109
            {
109
            {
110
                int team = item->data(Qt::EditRole).toInt();
110
                int team = item->data(Qt::EditRole).toInt();
111
                if ( team )
111
                if ( team )
112
                {
112
                {
113
                    qDebug("Detected change:%d", team);
113
                    //qDebug("Detected change:%d", team);
114
                    g_record( team, &team_buf );
114
                    g_record( team, &team_buf );
115
 
115
 
116
                    item = tableWidget->item(ii,2);
116
                    item = tableWidget->item(ii,2);
117
                    team_buf.flags.disqualified =  ( item->checkState () == Qt::Checked);
117
                    team_buf.flags.disqualified =  ( item->checkState () == Qt::Checked);
118
 
118
 
Line 209... Line 209...
209
{
209
{
210
    if ( !inPopulate )
210
    if ( !inPopulate )
211
    {
211
    {
212
        if ( item->column() )
212
        if ( item->column() )
213
        {
213
        {
214
            qDebug ("DataChanged");
214
            //qDebug ("DataChanged");
215
            item->setData(Qt::BackgroundRole, QBrush(QColor(255,0,0,50)));
215
            item->setData(Qt::BackgroundRole, QBrush(QColor(255,0,0,50)));
216
 
216
 
217
            // Mark first item in row to help detect changes
217
            // Mark first item in row to help detect changes
218
            int row = item->row();
218
            int row = item->row();
219
            item->tableWidget()->item(row,0)->setData(Qt::UserRole + 1, true );
219
            item->tableWidget()->item(row,0)->setData(Qt::UserRole + 1, true );
Line 242... Line 242...
242
    }
242
    }
243
}
243
}
244
 
244
 
245
void qmDisqualified::showEvent ( QShowEvent * event )
245
void qmDisqualified::showEvent ( QShowEvent * event )
246
{
246
{
247
    qDebug("qmDisqualified::showEvent");
247
    //qDebug("qmDisqualified::showEvent");
248
    if ( ! event->spontaneous() && !dirty )
248
    if ( ! event->spontaneous() && !dirty )
249
    {
249
    {
250
        populate();
250
        populate();
251
    }
251
    }
252
}
252
}