QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
wmayer
parent
e55ba2d24d
commit
d5c074f80d
@@ -561,7 +561,7 @@ void TaskCheckGeometryResults::buildShapeContent(const QString &baseName, const
|
||||
std::ostringstream stream;
|
||||
if (!shapeContentString.empty())
|
||||
stream << std::endl << std::endl;
|
||||
stream << baseName.toAscii().data() << ":" << std::endl;
|
||||
stream << baseName.toLatin1().data() << ":" << std::endl;
|
||||
|
||||
BRepTools_ShapeSet set;
|
||||
set.Add(shape);
|
||||
@@ -709,7 +709,7 @@ void TaskCheckGeometryResults::currentRowChanged (const QModelIndex ¤t, co
|
||||
QString doc, object, sub;
|
||||
if (!this->split((*stringIt), doc, object, sub))
|
||||
continue;
|
||||
Gui::Selection().addSelection(doc.toAscii(), object.toAscii(), sub.toAscii());
|
||||
Gui::Selection().addSelection(doc.toLatin1(), object.toLatin1(), sub.toLatin1());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user