Removed deprecated UTF8 QTApplication references.
This commit is contained in:
parent
9cb1e58f3f
commit
9689664aa1
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user