38 QFile file(mFileName);
39 if (!QFileInfo(mFileName).exists() || !file.open(QIODevice::ReadOnly))
42 reportWarning(QString(
"Failed to open file %1 for reading ").arg(file.fileName()));
48 QString positionString = file.readLine();
49 positionString +=
" " + file.readLine();
50 positionString +=
" " + file.readLine();
51 positionString +=
" " + file.readLine();
52 retval = Transform3D::fromString(positionString, &localOk);
67 QFile file(mFileName);
68 if (!file.open(QIODevice::Truncate | QIODevice::WriteOnly | QIODevice::Text))
70 reportWarning(QString(
"Failed to open file %1 for writing.").arg(file.fileName()));