Removed deprecated UTF8 QTApplication references.
This commit is contained in:
parent
9cb1e58f3f
commit
9689664aa1
|
@ -187,8 +187,7 @@ class CadQueryExecuteScript:
|
||||||
msg = QtGui.QApplication.translate(
|
msg = QtGui.QApplication.translate(
|
||||||
"cqCodeWidget",
|
"cqCodeWidget",
|
||||||
"Executed ",
|
"Executed ",
|
||||||
None,
|
None)
|
||||||
QtGui.QApplication.UnicodeUTF8)
|
|
||||||
FreeCAD.Console.PrintMessage(msg + cqCodePane.file.path + "\r\n")
|
FreeCAD.Console.PrintMessage(msg + cqCodePane.file.path + "\r\n")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,5 @@ def save(filename=None):
|
||||||
msg = QtGui.QApplication.translate(
|
msg = QtGui.QApplication.translate(
|
||||||
"cqCodeWidget",
|
"cqCodeWidget",
|
||||||
"Saved ",
|
"Saved ",
|
||||||
None,
|
None)
|
||||||
QtGui.QApplication.UnicodeUTF8)
|
|
||||||
FreeCAD.Console.PrintMessage(msg + cqCodePane.file.path + "\r\n")
|
FreeCAD.Console.PrintMessage(msg + cqCodePane.file.path + "\r\n")
|
||||||
|
|
|
@ -36,8 +36,7 @@ def open(filename):
|
||||||
msg = QtGui.QApplication.translate(
|
msg = QtGui.QApplication.translate(
|
||||||
"cqCodeWidget",
|
"cqCodeWidget",
|
||||||
"Please install Python 2.7",
|
"Please install Python 2.7",
|
||||||
None,
|
None)
|
||||||
QtGui.QApplication.UnicodeUTF8)
|
|
||||||
FreeCAD.Console.PrintError(msg + "\r\n")
|
FreeCAD.Console.PrintError(msg + "\r\n")
|
||||||
|
|
||||||
# The extra version numbers won't work on Windows
|
# The extra version numbers won't work on Windows
|
||||||
|
@ -98,8 +97,7 @@ def open(filename):
|
||||||
msg = QtGui.QApplication.translate(
|
msg = QtGui.QApplication.translate(
|
||||||
"cqCodeWidget",
|
"cqCodeWidget",
|
||||||
"Opened ",
|
"Opened ",
|
||||||
None,
|
None)
|
||||||
QtGui.QApplication.UnicodeUTF8)
|
|
||||||
FreeCAD.Console.PrintMessage(msg + filename + "\r\n")
|
FreeCAD.Console.PrintMessage(msg + filename + "\r\n")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
|
@ -57,8 +57,7 @@ class CadQueryWorkbench (Workbench):
|
||||||
"Author: David Cowden\r\n"
|
"Author: David Cowden\r\n"
|
||||||
"License: Apache-2.0\r\n"
|
"License: Apache-2.0\r\n"
|
||||||
"Website: https://github.com/dcowden/cadquery\r\n",
|
"Website: https://github.com/dcowden/cadquery\r\n",
|
||||||
None,
|
None)
|
||||||
QtGui.QApplication.UnicodeUTF8)
|
|
||||||
FreeCAD.Console.PrintMessage(msg)
|
FreeCAD.Console.PrintMessage(msg)
|
||||||
|
|
||||||
#Getting the main window will allow us to start setting things up the way we want
|
#Getting the main window will allow us to start setting things up the way we want
|
||||||
|
|
Loading…
Reference in New Issue
Block a user