diff --git a/plover/gui_qt/config_serial_widget.ui b/plover/gui_qt/config_serial_widget.ui
index 3419b3565..39cb08711 100644
--- a/plover/gui_qt/config_serial_widget.ui
+++ b/plover/gui_qt/config_serial_widget.ui
@@ -341,7 +341,7 @@
baudrate
- activated(QString)
+ textActivated(QString)
SerialWidget
on_baudrate_changed(QString)
@@ -357,7 +357,7 @@
bytesize
- activated(QString)
+ textActivated(QString)
SerialWidget
on_bytesize_changed(QString)
@@ -373,7 +373,7 @@
parity
- activated(QString)
+ textActivated(QString)
SerialWidget
on_parity_changed(QString)
@@ -405,7 +405,7 @@
stopbits
- activated(QString)
+ textActivated(QString)
SerialWidget
on_stopbits_changed(QString)
diff --git a/plover/gui_qt/dictionaries_widget.py b/plover/gui_qt/dictionaries_widget.py
index 007e02bb6..e42db7839 100644
--- a/plover/gui_qt/dictionaries_widget.py
+++ b/plover/gui_qt/dictionaries_widget.py
@@ -7,7 +7,7 @@
Qt,
pyqtSignal,
)
-from PyQt6.QtGui import QCursor, QIcon
+from PyQt6.QtGui import QCursor
from PyQt6.QtWidgets import (
QFileDialog,
QGroupBox,
diff --git a/plover/gui_qt/dictionary_editor.py b/plover/gui_qt/dictionary_editor.py
index dd0f239b2..4c5c19b2c 100644
--- a/plover/gui_qt/dictionary_editor.py
+++ b/plover/gui_qt/dictionary_editor.py
@@ -8,7 +8,6 @@
QModelIndex,
Qt,
)
-from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import (
QComboBox,
QDialog,
@@ -22,7 +21,7 @@
from plover.gui_qt.dictionary_editor_ui import Ui_DictionaryEditor
from plover.gui_qt.steno_validator import StenoValidator
-from plover.gui_qt.utils import ToolBar, WindowState
+from plover.gui_qt.utils import ToolBar, WindowState, Icon
_COL_STENO, _COL_TRANS, _COL_DICT, _COL_COUNT = range(3 + 1)
@@ -65,7 +64,7 @@ class DictionaryItemModel(QAbstractTableModel):
def __init__(self, dictionary_list, sort_column, sort_order):
super().__init__()
- self._error_icon = QIcon(':/dictionary_error.svg')
+ self._error_icon = Icon(':/dictionary_error.svg')
self._dictionary_list = dictionary_list
self._operations = []
self._entries = []
diff --git a/plover/gui_qt/machine_options.py b/plover/gui_qt/machine_options.py
index 138e5239a..d831bbfc6 100644
--- a/plover/gui_qt/machine_options.py
+++ b/plover/gui_qt/machine_options.py
@@ -68,11 +68,11 @@ def __init__(self):
self._details_frame_format.setForeground(foreground)
self._details_frame_format.setTopMargin(doc_margin)
self._details_frame_format.setBottomMargin(-3 * doc_margin)
- self._details_frame_format.setBorderStyle(QTextFrameFormat.BorderStyle_Solid)
+ self._details_frame_format.setBorderStyle(QTextFrameFormat.BorderStyle.BorderStyle_Solid)
self._details_frame_format.setBorder(doc_margin / 2)
self._details_frame_format.setPadding(doc_margin)
self._details_list_format = QTextListFormat()
- self._details_list_format.setStyle(QTextListFormat.ListSquare)
+ self._details_list_format.setStyle(QTextListFormat.Style.ListSquare)
def _format_port(self, index):
self._doc.clear()
diff --git a/plover/gui_qt/suggestions_dialog.py b/plover/gui_qt/suggestions_dialog.py
index 179b6db1f..ea4792389 100644
--- a/plover/gui_qt/suggestions_dialog.py
+++ b/plover/gui_qt/suggestions_dialog.py
@@ -95,7 +95,7 @@ def _save_state(self, settings):
font = self._get_font(name)
font_string = font.toString()
settings.setValue(name, font_string)
- ontop = bool(self.windowFlags() & Qt.WindowStaysOnTopHint)
+ ontop = bool(self.windowFlags() & Qt.WindowType.WindowStaysOnTopHint)
settings.setValue('ontop', ontop)
def _show_suggestions(self, suggestion_list):