6 """ |
6 """ |
7 Module implementing a delegate for the special list widget for GreaseMonkey |
7 Module implementing a delegate for the special list widget for GreaseMonkey |
8 scripts. |
8 scripts. |
9 """ |
9 """ |
10 |
10 |
11 from PyQt6.QtCore import Qt, QSize, QRect |
11 from PyQt6.QtCore import QRect, QSize, Qt |
12 from PyQt6.QtGui import QFontMetrics, QPalette, QFont |
12 from PyQt6.QtGui import QFont, QFontMetrics, QPalette |
13 from PyQt6.QtWidgets import QStyle, QStyledItemDelegate, QApplication |
13 from PyQt6.QtWidgets import ( |
14 from PyQt6.QtWidgets import QStyleOptionViewItem |
14 QApplication, |
15 |
15 QStyle, |
|
16 QStyledItemDelegate, |
|
17 QStyleOptionViewItem, |
|
18 ) |
|
19 |
|
20 from eric7 import Globals |
16 from eric7.EricGui import EricPixmapCache |
21 from eric7.EricGui import EricPixmapCache |
17 from eric7 import Globals |
|
18 |
22 |
19 |
23 |
20 class GreaseMonkeyConfigurationListDelegate(QStyledItemDelegate): |
24 class GreaseMonkeyConfigurationListDelegate(QStyledItemDelegate): |
21 """ |
25 """ |
22 Class implementing a delegate for the special list widget for GreaseMonkey |
26 Class implementing a delegate for the special list widget for GreaseMonkey |