Removed deprecated UTF8 QTApplication references.

This commit is contained in:
Jeremy Mack Wright 2017-09-02 00:03:00 -04:00
parent 9cb1e58f3f
commit 9689664aa1
4 changed files with 5 additions and 10 deletions

View File

@ -187,8 +187,7 @@ class CadQueryExecuteScript:
msg = QtGui.QApplication.translate(
"cqCodeWidget",
"Executed ",
None,
QtGui.QApplication.UnicodeUTF8)
None)
FreeCAD.Console.PrintMessage(msg + cqCodePane.file.path + "\r\n")

View File

@ -26,6 +26,5 @@ def save(filename=None):
msg = QtGui.QApplication.translate(
"cqCodeWidget",
"Saved ",
None,
QtGui.QApplication.UnicodeUTF8)
None)
FreeCAD.Console.PrintMessage(msg + cqCodePane.file.path + "\r\n")

View File

@ -36,8 +36,7 @@ def open(filename):
msg = QtGui.QApplication.translate(
"cqCodeWidget",
"Please install Python 2.7",
None,
QtGui.QApplication.UnicodeUTF8)
None)
FreeCAD.Console.PrintError(msg + "\r\n")
# The extra version numbers won't work on Windows
@ -98,8 +97,7 @@ def open(filename):
msg = QtGui.QApplication.translate(
"cqCodeWidget",
"Opened ",
None,
QtGui.QApplication.UnicodeUTF8)
None)
FreeCAD.Console.PrintMessage(msg + filename + "\r\n")
return

View File

@ -57,8 +57,7 @@ class CadQueryWorkbench (Workbench):
"Author: David Cowden\r\n"
"License: Apache-2.0\r\n"
"Website: https://github.com/dcowden/cadquery\r\n",
None,
QtGui.QApplication.UnicodeUTF8)
None)
FreeCAD.Console.PrintMessage(msg)
#Getting the main window will allow us to start setting things up the way we want