QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
wmayer
parent
d5c074f80d
commit
cd2db00f22
@@ -134,7 +134,7 @@ void DlgBooleanOperation::slotChangedObject(const App::DocumentObject& obj,
|
||||
if (!shape.IsNull()) {
|
||||
Gui::Document* activeGui = Gui::Application::Instance->getDocument(obj.getDocument());
|
||||
QString label = QString::fromUtf8(obj.Label.getValue());
|
||||
QString name = QString::fromAscii(obj.getNameInDocument());
|
||||
QString name = QString::fromLatin1(obj.getNameInDocument());
|
||||
|
||||
QTreeWidgetItem* child = new BooleanOperationItem();
|
||||
child->setCheckState(0, Qt::Unchecked);
|
||||
@@ -217,7 +217,7 @@ void DlgBooleanOperation::findShapes()
|
||||
const TopoDS_Shape& shape = static_cast<Part::Feature*>(*it)->Shape.getValue();
|
||||
if (!shape.IsNull()) {
|
||||
QString label = QString::fromUtf8((*it)->Label.getValue());
|
||||
QString name = QString::fromAscii((*it)->getNameInDocument());
|
||||
QString name = QString::fromLatin1((*it)->getNameInDocument());
|
||||
|
||||
QTreeWidgetItem* child = new BooleanOperationItem();
|
||||
child->setCheckState(0, Qt::Unchecked);
|
||||
|
||||
Reference in New Issue
Block a user