- some changes due of porting to PyQt6

This commit is contained in:
Marius Stanciu
2021-08-11 15:46:29 +03:00
parent 40034540cf
commit 63506b57a3
3 changed files with 6 additions and 6 deletions

View File

@@ -97,8 +97,8 @@ class TermWidget(QWidget):
:return: None
"""
self._edit.setTextColor(QtCore.Qt.white)
self._edit.setTextBackgroundColor(QtCore.Qt.darkGreen)
self._edit.setTextColor(QtCore.Qt.GlobalColor.white)
self._edit.setTextBackgroundColor(QtCore.Qt.GlobalColor.darkGreen)
if detail is None:
self._edit.setPlainText(_("...processing..."))
else:
@@ -113,8 +113,8 @@ class TermWidget(QWidget):
:return:
"""
self._edit.setTextColor(QtCore.Qt.black)
self._edit.setTextBackgroundColor(QtCore.Qt.white)
self._edit.setTextColor(QtCore.Qt.GlobalColor.black)
self._edit.setTextBackgroundColor(QtCore.Qt.GlobalColor.white)
self._edit.setPlainText('')
self._edit.setDisabled(False)
self._edit.setFocus()