src/eric7/Preferences/ConfigurationPages/DebuggerGeneralPage.py

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10311
0a141f9ae677
--- a/src/eric7/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Thu May 25 11:12:05 2023 +0200
+++ b/src/eric7/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Thu May 25 19:51:47 2023 +0200
@@ -10,7 +10,7 @@
 from PyQt6.QtCore import QAbstractItemModel, QModelIndex, Qt, pyqtSlot
 from PyQt6.QtGui import QBrush, QColor
 from PyQt6.QtNetwork import QAbstractSocket, QHostAddress, QNetworkInterface
-from PyQt6.QtWidgets import QInputDialog, QLineEdit
+from PyQt6.QtWidgets import QInputDialog, QLineEdit, QListWidgetItem
 
 from eric7 import Preferences, Utilities
 from eric7.EricWidgets import EricMessageBox
@@ -284,9 +284,10 @@
             index == self.interfaceSelectorComboBox.count() - 1
         )
 
+    @pyqtSlot(QListWidgetItem, QListWidgetItem)
     def on_allowedHostsList_currentItemChanged(self, current, previous):
         """
-        Private method set the state of the edit and delete button.
+        Private method to set the state of the edit and delete button.
 
         @param current new current item (QListWidgetItem)
         @param previous previous current item (QListWidgetItem)
@@ -411,7 +412,7 @@
 
         return self.createIndex(row, column, None)
 
-    def parent(self, child):
+    def parent(self, child):  # noqa: U100
         """
         Public Qt slot to get the parent of the given child.
 
@@ -422,7 +423,7 @@
         """
         return QModelIndex()
 
-    def columnCount(self, parent=QModelIndex()):
+    def columnCount(self, parent=QModelIndex()):  # noqa: U100
         """
         Public Qt slot to get the column count.
 
@@ -433,7 +434,7 @@
         """
         return 1
 
-    def rowCount(self, parent=QModelIndex()):
+    def rowCount(self, parent=QModelIndex()):  # noqa: U100
         """
         Public Qt slot to get the row count.
 
@@ -444,7 +445,7 @@
         """
         return 4
 
-    def flags(self, index):
+    def flags(self, index):  # noqa: U100
         """
         Public Qt slot to get the item flags.
 
@@ -477,7 +478,7 @@
         return None
 
 
-def create(dlg):
+def create(dlg):  # noqa: U100
     """
     Module function to create the configuration page.
 

eric ide

mercurial