Subversion Repositories public iLand

Rev

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

Rev 889 Rev 919
Line 203... Line 203...
203
        XmlHelper xml(GlobalSettings::instance()->settings());
203
        XmlHelper xml(GlobalSettings::instance()->settings());
204
        int row = mRowCoordinates[key];
204
        int row = mRowCoordinates[key];
205
        QString value;
205
        QString value;
206
        if (logLevelInfo()) qDebug() << "settting up point" << position << "with row" << row;
206
        if (logLevelInfo()) qDebug() << "settting up point" << position << "with row" << row;
207
        for (int col=0;col<mInfile->colCount(); col++) {
207
        for (int col=0;col<mInfile->colCount(); col++) {
208
            if (mKeys[col]=="x" || mKeys[col]=="y" || mKeys[col]=="id") // ignore "x" and "y" keys
-
 
-
 
208
            if (mKeys[col]=="id") {
-
 
209
                mCurrentID = mInfile->value(row, col).toInt();
-
 
210
                continue;
-
 
211
            }
-
 
212
            if (mKeys[col]=="x" || mKeys[col]=="y") // ignore "x" and "y" keys
209
                continue;
213
                continue;
210
            value = mInfile->value(row,col).toString();
214
            value = mInfile->value(row,col).toString();
211
            if (logLevelInfo()) qDebug() << "set" << mKeys[col] << "to" << value;
215
            if (logLevelInfo()) qDebug() << "set" << mKeys[col] << "to" << value;
212
            xml.setNodeValue(mKeys[col], value);
216
            xml.setNodeValue(mKeys[col], value);
213
            // special handling for constructed objects:
217
            // special handling for constructed objects: