From 8b2f435c04abca8150690c703e6e0e99b0bb3d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Skowro=C5=84ski?= Date: Sun, 26 Jun 2016 07:44:32 +0200 Subject: [PATCH] QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1(). This change is Qt4/Qt5 neutral. --- src/Mod/Fem/Gui/TaskPostBoxes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Fem/Gui/TaskPostBoxes.cpp b/src/Mod/Fem/Gui/TaskPostBoxes.cpp index c2ed47217..4d46aee01 100644 --- a/src/Mod/Fem/Gui/TaskPostBoxes.cpp +++ b/src/Mod/Fem/Gui/TaskPostBoxes.cpp @@ -107,7 +107,7 @@ bool TaskDlgPost::accept() (*it)->applyPythonCode(); } catch (const Base::Exception& e) { - QMessageBox::warning(NULL, tr("Input error"), QString::fromAscii(e.what())); + QMessageBox::warning(NULL, tr("Input error"), QString::fromLatin1(e.what())); return false; } @@ -297,7 +297,7 @@ void TaskPostClip::collectImplicitFunctions() { const std::vector& funcs = static_cast( pipeline->Functions.getValue())->Functions.getValues(); for(std::size_t i=0; igetNameInDocument())); + items.push_back(QString::fromLatin1(funcs[i]->getNameInDocument())); ui->FunctionBox->addItems(items); } @@ -589,7 +589,7 @@ void TaskPostCut::collectImplicitFunctions() { const std::vector& funcs = static_cast( pipeline->Functions.getValue())->Functions.getValues(); for(std::size_t i=0; igetNameInDocument())); + items.push_back(QString::fromLatin1(funcs[i]->getNameInDocument())); ui->FunctionBox->addItems(items); }