--- a/eric6/PluginManager/PluginInfoDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/PluginManager/PluginInfoDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -27,7 +27,7 @@ """ super(PluginInfoDialog, self).__init__(parent) self.setupUi(self) - self.setWindowFlags(Qt.Window) + self.setWindowFlags(Qt.WindowType.Window) self.pm = pluginManager @@ -38,7 +38,7 @@ # populate the list self.__populateList() - self.pluginList.sortByColumn(0, Qt.AscendingOrder) + self.pluginList.sortByColumn(0, Qt.SortOrder.AscendingOrder) self.__menu = QMenu(self) self.__menu.addAction(self.tr('Show details'), self.__showDetails) @@ -46,7 +46,8 @@ self.tr('Activate'), self.__activatePlugin) self.__deactivateAct = self.__menu.addAction( self.tr('Deactivate'), self.__deactivatePlugin) - self.pluginList.setContextMenuPolicy(Qt.CustomContextMenu) + self.pluginList.setContextMenuPolicy( + Qt.ContextMenuPolicy.CustomContextMenu) self.pluginList.customContextMenuRequested.connect( self.__showContextMenu) @@ -81,11 +82,14 @@ if info["error"]: # plugin error for col in range(self.pluginList.columnCount()): - itm.setForeground(col, QBrush(Qt.red)) - itm.setTextAlignment(self.__autoActivateColumn, Qt.AlignHCenter) - itm.setTextAlignment(self.__activeColumn, Qt.AlignHCenter) + itm.setForeground(col, QBrush(Qt.GlobalColor.red)) + itm.setTextAlignment(self.__autoActivateColumn, + Qt.AlignmentFlag.AlignHCenter) + itm.setTextAlignment(self.__activeColumn, + Qt.AlignmentFlag.AlignHCenter) - self.pluginList.header().resizeSections(QHeaderView.ResizeToContents) + self.pluginList.header().resizeSections( + QHeaderView.ResizeMode.ResizeToContents) self.pluginList.header().setStretchLastSection(True) def __showContextMenu(self, coord):