From e8b8cabefdae334b6451af881132d1860ab27b82 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 23 Feb 2024 01:05:34 +0100 Subject: [PATCH] fix Qt.Key and Qt.Modifier --- addon/bridge_actions.py | 2 +- addon/stats_window.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/bridge_actions.py b/addon/bridge_actions.py index cb13e0d..bf351ad 100644 --- a/addon/bridge_actions.py +++ b/addon/bridge_actions.py @@ -162,7 +162,7 @@ def arg_from(i): elif args[0] == "suggest_change": character = args[1] - key_sequence = QKeySequence(Qt.CTRL + Qt.Key_F).toString( + key_sequence = QKeySequence(Qt.Modifier.CTRL | Qt.Key.Key_F).toString( QKeySequence.SequenceFormat.NativeText ) diff --git a/addon/stats_window.py b/addon/stats_window.py index 78ad293..19c335e 100644 --- a/addon/stats_window.py +++ b/addon/stats_window.py @@ -248,7 +248,7 @@ def closeEvent(self, evt): return QDialog.closeEvent(self, evt) def keyPressEvent(self, evt): - if evt.key() == Qt.Key_F11: + if evt.key() == Qt.Key.Key_F11: self.toggle_fullscreen() return return QDialog.keyPressEvent(self, evt)