- fixed some issues in AppTextEditor due of Qt6 conversion

This commit is contained in:
Marius Stanciu
2021-09-19 21:16:20 +03:00
committed by Marius
parent bc0f6ea3f6
commit 59e19c6228
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ CHANGELOG for FlatCAM beta
- In Plugins: Panelize, Cutout, Extract, Copper Thieving disabled the autoload of the last created APP object
- In Plugins: Calculators, Copper Thieving, Corners, Extract, Fiducials and Film activated the harmonizing first column width in the Plugin UI
- DblSided Plugin - remade the UI
- fixed some issues in AppTextEditor due of Qt6 conversion
18.09.2021

View File

@@ -329,7 +329,7 @@ class AppTextEditor(QtWidgets.QWidget):
def handleFindGCode(self):
flags = QtGui.QTextDocument.FindCaseSensitively
flags = QtGui.QTextDocument.FindFlag.FindCaseSensitively
text_to_be_found = self.entryFind.get_value()
r = self.code_editor.find(str(text_to_be_found), flags)
@@ -346,7 +346,7 @@ class AppTextEditor(QtWidgets.QWidget):
while True:
cursor = self.code_editor.textCursor()
cursor.beginEditBlock()
flags = QtGui.QTextDocument.FindCaseSensitively
flags = QtGui.QTextDocument.FindFlag.FindCaseSensitively
# self.ui.editor is the QPlainTextEdit
r = self.code_editor.find(str(old), flags)
if r: