Subversion Repositories svn1-original

Rev

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

Rev 275 Rev 276
Line 105... Line 105...
105
    while (!in.atEnd())
105
    while (!in.atEnd())
106
    {
106
    {
107
        QString line = in.readLine();
107
        QString line = in.readLine();
108
        line = line.trimmed();             // Remove leading and training White Space
108
        line = line.trimmed();             // Remove leading and training White Space
109
        line.remove(0xA0);                 // M$ special uglyness
109
        line.remove(0xA0);                 // M$ special uglyness
-
 
110
        line.remove(0xC2);                 // M$ special uglyness
110
 
111
 
111
        has_RefError = hasRefError(line);
112
        has_RefError = hasRefError(line);
112
        QStringList parts = splitCsvData(line);
113
        QStringList parts = splitCsvData(line);
113
        QString first = parts.value(0);
114
        QString first = parts.value(0);
114
        bool ok;
115
        bool ok;
Line 186... Line 187...
186
    }
187
    }
187
    tableWidget->resizeColumnsToContents();
188
    tableWidget->resizeColumnsToContents();
188
 
189
 
189
    // Report errors
190
    // Report errors
190
    reportErrors( bad_cat, bad_refs);
191
    reportErrors( bad_cat, bad_refs);
191
    
192
 
192
    // Connect up buttons
193
    // Connect up buttons
193
 
194
 
194
    connect (load, SIGNAL(clicked()), this, SLOT(loadData()));
195
    connect (load, SIGNAL(clicked()), this, SLOT(loadData()));
195
    connect(cancel, SIGNAL(clicked()), this, SLOT(close()));
196
    connect(cancel, SIGNAL(clicked()), this, SLOT(close()));
196
}
197
}
Line 417... Line 418...
417
 
418
 
418
            data++;
419
            data++;
419
 
420
 
420
            /*
421
            /*
421
            ** Ugly character from MS CSV files
422
            ** Ugly character from MS CSV files
-
 
423
            ** Not too sure what the 194 is. It looks like a 0xA0 in the raw data
422
            */
424
            */
423
            if ( uch == (char) 0xA0 )
425
            if ( uch == (char) 0xA0 || uch == (char)194 )
424
            {
426
            {
425
                continue;
427
                continue;
426
            }
428
            }
427
 
429
 
428
            if ( !quoted && uch == ',' )
430
            if ( !quoted && uch == ',' )