From 59e19c622853ed361011fa64b6b1217d76f016b9 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 19 Sep 2021 21:16:20 +0300 Subject: [PATCH] - fixed some issues in AppTextEditor due of Qt6 conversion --- CHANGELOG.md | 1 + appEditors/AppTextEditor.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43683609..039e4dc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/appEditors/AppTextEditor.py b/appEditors/AppTextEditor.py index 76a23501..19edb031 100644 --- a/appEditors/AppTextEditor.py +++ b/appEditors/AppTextEditor.py @@ -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: