Fix remaining toAscii/fromAscii
Qt5 does not have toAscii or fromAscii. Use toLatin1 and fromLatin1 respectively. Both replacement functions exist in Qt4.8.
This commit is contained in:
@@ -51,7 +51,7 @@ Workbench::Workbench()
|
||||
{
|
||||
// Tree view
|
||||
Gui::DockWindow* tree = new Gui::DockWindow(0, Gui::getMainWindow());
|
||||
tree->setWindowTitle(QString::fromAscii("Tree view"));
|
||||
tree->setWindowTitle(QString::fromLatin1("Tree view"));
|
||||
Gui::TreeView* treeWidget = new Gui::TreeView(tree);
|
||||
treeWidget->setRootIsDecorated(false);
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/TreeView");
|
||||
@@ -63,7 +63,7 @@ Workbench::Workbench()
|
||||
pLayout->addWidget(treeWidget, 0, 0);
|
||||
|
||||
tree->setObjectName
|
||||
(QString::fromAscii(QT_TRANSLATE_NOOP("QDockWidget","Tree view (MVC)")));
|
||||
(QString::fromLatin1(QT_TRANSLATE_NOOP("QDockWidget","Tree view (MVC)")));
|
||||
tree->setMinimumWidth(210);
|
||||
Gui::DockWindowManager* pDockMgr = Gui::DockWindowManager::instance();
|
||||
pDockMgr->registerDockWindow("Std_TreeViewMVC", tree);
|
||||
|
||||
Reference in New Issue
Block a user