TranslatorWidget: changed the code to be backward compatible wit Qt < 6.2.0 again. eric7

Tue, 17 Aug 2021 12:32:21 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 17 Aug 2021 12:32:21 +0200
branch
eric7
changeset 8514
736178b32e5a
parent 8513
a7464bea3d0a
child 8515
7e7bebfb21e8

TranslatorWidget: changed the code to be backward compatible wit Qt < 6.2.0 again.

eric7/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py file | annotate | diff | comparison | revisions
--- a/eric7/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py	Tue Aug 17 12:26:40 2021 +0200
+++ b/eric7/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py	Tue Aug 17 12:32:21 2021 +0200
@@ -466,7 +466,6 @@
                     self.tr("Translation Error"),
                     data)
     
-    @pyqtSlot(QMediaPlayer.PlaybackState)
     def __mediaPlayerPlaybackStateChanged(self, state):
         """
         Private slot handling changes of the media player state.
@@ -478,7 +477,6 @@
             self.__mediaFile.remove()
             self.__mediaFile = None
     
-    @pyqtSlot(QMediaPlayer.Error, str)
     def __mediaPlayerError(self, error, errorString):
         """
         Private slot to handle errors during playback of the data.

eric ide

mercurial