diff --git a/src/Gui/DAGView/DAGModelGraph.h b/src/Gui/DAGView/DAGModelGraph.h index 894c6c284..e072cb71f 100644 --- a/src/Gui/DAGView/DAGModelGraph.h +++ b/src/Gui/DAGView/DAGModelGraph.h @@ -151,7 +151,7 @@ namespace Gui void operator()(std::ostream& out, const VertexW& vertexW) const { out << "[label=\""; - out << graphVW[vertexW].text->toPlainText().toAscii().data(); + out << graphVW[vertexW].text->toPlainText().toLatin1().data(); out << "\"]"; } private: diff --git a/src/Mod/PartDesign/Gui/TaskDatumParameters.cpp b/src/Mod/PartDesign/Gui/TaskDatumParameters.cpp index 8c038af25..0ee984834 100644 --- a/src/Mod/PartDesign/Gui/TaskDatumParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskDatumParameters.cpp @@ -107,7 +107,7 @@ void TaskDatumParameters::makeRefStrings(std::vector& refstrings, std:: } TaskDatumParameters::TaskDatumParameters(ViewProviderDatum *DatumView,QWidget *parent) - : TaskBox(Gui::BitmapFactory().pixmap((QString::fromAscii("PartDesign_") + DatumView->datumType).toAscii()), + : TaskBox(Gui::BitmapFactory().pixmap((QString::fromAscii("PartDesign_") + DatumView->datumType).toLatin1()), DatumView->datumType + tr(" parameters"), true, parent), DatumView(DatumView) { @@ -597,7 +597,7 @@ void TaskDatumParameters::onRefName(const QString& text, unsigned idx) if (parts.length() < 2) parts.push_back(QString::fromAscii("")); // Check whether this is the name of an App::Plane or Part::Datum feature - App::DocumentObject* obj = DatumView->getObject()->getDocument()->getObject(parts[0].toAscii()); + App::DocumentObject* obj = DatumView->getObject()->getDocument()->getObject(parts[0].toLatin1()); if (obj == NULL) return; std::string subElement; diff --git a/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp b/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp index 822204855..7337f8f0e 100644 --- a/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp +++ b/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp @@ -198,7 +198,7 @@ std::vector TaskFeaturePick::getFeatures() { std::vector result; for (std::vector::const_iterator s = features.begin(); s != features.end(); s++) - result.push_back(App::GetApplication().getActiveDocument()->getObject(s->toAscii().data())); + result.push_back(App::GetApplication().getActiveDocument()->getObject(s->toLatin1().data())); return result; } @@ -217,7 +217,7 @@ std::vector TaskFeaturePick::buildFeatures() { QString t = item->text(); t = t.left(t.indexOf(QString::fromAscii("(")) - 1); - auto obj = App::GetApplication().getActiveDocument()->getObject(t.toAscii().data()); + auto obj = App::GetApplication().getActiveDocument()->getObject(t.toLatin1().data()); //build the dependend copy or reference if wanted by the user if(*st == otherBody || diff --git a/src/Mod/PartDesign/Gui/TaskSketchBasedParameters.cpp b/src/Mod/PartDesign/Gui/TaskSketchBasedParameters.cpp index 2f7745d4a..50e7ebcb0 100644 --- a/src/Mod/PartDesign/Gui/TaskSketchBasedParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskSketchBasedParameters.cpp @@ -136,7 +136,7 @@ const QByteArray TaskSketchBasedParameters::onFaceName(const QString& text) if (parts.length() < 2) parts.push_back(QString::fromAscii("")); // Check whether this is the name of an App::Plane or Part::Datum feature - App::DocumentObject* obj = vp->getObject()->getDocument()->getObject(parts[0].toAscii()); + App::DocumentObject* obj = vp->getObject()->getDocument()->getObject(parts[0].toLatin1()); if (obj == NULL) return QByteArray();