eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesStatusDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
diff -r 27f636beebad -r 2c730d5fd177 eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesStatusDialog.py
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesStatusDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesStatusDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -48,7 +48,7 @@
         self.__repodir = None
         
         self.refreshButton = self.buttonBox.addButton(
-            self.tr("Refresh"), QDialogButtonBox.ActionRole)
+            self.tr("Refresh"), QDialogButtonBox.ButtonRole.ActionRole)
         self.refreshButton.setToolTip(
             self.tr("Press to refresh the status display"))
     
@@ -139,10 +139,10 @@
             ])
         
         self.statusList.header().resizeSections(
-            QHeaderView.ResizeToContents)
+            QHeaderView.ResizeMode.ResizeToContents)
         
         self.statusList.setSortingEnabled(True)
-        self.statusList.sortItems(0, Qt.AscendingOrder)
+        self.statusList.sortItems(0, Qt.SortOrder.AscendingOrder)
         self.statusList.setSortingEnabled(False)
     
     @pyqtSlot(QAbstractButton)
@@ -152,7 +152,9 @@
         
         @param button button that was clicked (QAbstractButton)
         """
-        if button == self.buttonBox.button(QDialogButtonBox.Close):
+        if button == self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Close
+        ):
             self.close()
         elif button == self.refreshButton:
             self.on_refreshButton_clicked()

eric ide

mercurial