Fixed a signal/slot issue with the "Remove Split" action.

Thu, 18 Jan 2018 18:57:40 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 18 Jan 2018 18:57:40 +0100
changeset 6072
059c8f981ef4
parent 6070
84e868de5a24
child 6073
a679240821cb

Fixed a signal/slot issue with the "Remove Split" action.

Plugins/ViewManagerPlugins/Listspace/Listspace.py file | annotate | diff | comparison | revisions
Plugins/ViewManagerPlugins/Tabview/Tabview.py file | annotate | diff | comparison | revisions
ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
--- a/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Thu Jan 18 11:10:57 2018 +0100
+++ b/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Thu Jan 18 18:57:40 2018 +0100
@@ -11,7 +11,7 @@
 
 import os
 
-from PyQt5.QtCore import pyqtSignal, QFileInfo, QEvent, Qt
+from PyQt5.QtCore import pyqtSignal, pyqtSlot, QFileInfo, QEvent, Qt
 from PyQt5.QtWidgets import QStackedWidget, QSplitter, QListWidget, \
     QListWidgetItem, QSizePolicy, QMenu, QApplication
 
@@ -647,6 +647,7 @@
         self.nextSplitAct.setEnabled(True)
         self.prevSplitAct.setEnabled(True)
         
+    @pyqtSlot()
     def removeSplit(self, index=-1):
         """
         Public method used to remove the current split view or a split view
--- a/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Thu Jan 18 11:10:57 2018 +0100
+++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Thu Jan 18 18:57:40 2018 +0100
@@ -11,8 +11,8 @@
 
 import os
 
-from PyQt5.QtCore import QPoint, QFileInfo, pyqtSignal, QEvent, QByteArray, \
-    QMimeData, Qt, QSize
+from PyQt5.QtCore import pyqtSlot, QPoint, QFileInfo, pyqtSignal, QEvent, \
+    QByteArray, QMimeData, Qt, QSize
 from PyQt5.QtGui import QColor, QDrag, QPixmap
 from PyQt5.QtWidgets import QWidget, QHBoxLayout, QSplitter, QTabBar, \
     QApplication, QToolButton, QMenu, QLabel
@@ -1165,6 +1165,7 @@
         self.nextSplitAct.setEnabled(True)
         self.prevSplitAct.setEnabled(True)
         
+    @pyqtSlot()
     def removeSplit(self, index=-1):
         """
         Public method used to remove the current split view or a split view
--- a/ViewManager/ViewManager.py	Thu Jan 18 11:10:57 2018 +0100
+++ b/ViewManager/ViewManager.py	Thu Jan 18 18:57:40 2018 +0100
@@ -11,7 +11,7 @@
 
 import os
 
-from PyQt5.QtCore import pyqtSignal, QSignalMapper, QTimer, \
+from PyQt5.QtCore import pyqtSignal, pyqtSlot, QSignalMapper, QTimer, \
     QFileInfo, QRegExp, Qt, QCoreApplication
 from PyQt5.QtGui import QColor, QKeySequence, QPalette, QPixmap
 from PyQt5.QtWidgets import QLineEdit, QToolBar, QWidgetAction, QDialog, \
@@ -478,6 +478,7 @@
         """
         pass
         
+    @pyqtSlot()
     def removeSplit(self, index=-1):
         """
         Public method used to remove the current split view or a split view

eric ide

mercurial