eric6/ViewManager/BookmarkedFilesDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
diff -r 27f636beebad -r 2c730d5fd177 eric6/ViewManager/BookmarkedFilesDialog.py
--- a/eric6/ViewManager/BookmarkedFilesDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/ViewManager/BookmarkedFilesDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -36,7 +36,7 @@
         for bookmark in self.bookmarks:
             itm = QListWidgetItem(bookmark, self.filesList)
             if not QFileInfo(bookmark).exists():
-                itm.setBackground(QColor(Qt.red))
+                itm.setBackground(QColor(Qt.GlobalColor.red))
             
         if len(self.bookmarks):
             self.filesList.setCurrentRow(0)
@@ -83,7 +83,7 @@
         if bookmark:
             itm = QListWidgetItem(bookmark, self.filesList)
             if not QFileInfo(bookmark).exists():
-                itm.setBackground(QColor(Qt.red))
+                itm.setBackground(QColor(Qt.GlobalColor.red))
             self.filePicker.clear()
             self.bookmarks.append(bookmark)
         row = self.filesList.currentRow()
@@ -100,7 +100,7 @@
         itm = self.filesList.item(row)
         itm.setText(bookmark)
         if not QFileInfo(bookmark).exists():
-            itm.setBackground(QColor(Qt.red))
+            itm.setBackground(QColor(Qt.GlobalColor.red))
         else:
             itm.setBackground(QColor())
         

eric ide

mercurial