6 """ |
6 """ |
7 Module implementing the variables viewer view based on QTreeView. |
7 Module implementing the variables viewer view based on QTreeView. |
8 """ |
8 """ |
9 |
9 |
10 import ast |
10 import ast |
|
11 import contextlib |
11 import re |
12 import re |
12 import contextlib |
|
13 |
13 |
14 from PyQt6.QtCore import ( |
14 from PyQt6.QtCore import ( |
|
15 QAbstractItemModel, |
|
16 QCoreApplication, |
|
17 QModelIndex, |
|
18 QSortFilterProxyModel, |
15 Qt, |
19 Qt, |
16 QAbstractItemModel, |
|
17 QModelIndex, |
|
18 QCoreApplication, |
|
19 QSortFilterProxyModel, |
|
20 pyqtSignal, |
20 pyqtSignal, |
21 ) |
21 ) |
22 from PyQt6.QtGui import QBrush, QFontMetrics |
22 from PyQt6.QtGui import QBrush, QFontMetrics |
23 from PyQt6.QtWidgets import QTreeView, QAbstractItemView, QToolTip, QMenu |
23 from PyQt6.QtWidgets import QAbstractItemView, QMenu, QToolTip, QTreeView |
24 |
24 |
|
25 from eric7 import Preferences, Utilities |
25 from eric7.EricWidgets.EricApplication import ericApp |
26 from eric7.EricWidgets.EricApplication import ericApp |
26 |
27 |
27 from .Config import ConfigVarTypeDispStrings |
28 from .Config import ConfigVarTypeDispStrings |
28 |
|
29 from eric7 import Preferences, Utilities |
|
30 |
29 |
31 SORT_ROLE = Qt.ItemDataRole.UserRole |
30 SORT_ROLE = Qt.ItemDataRole.UserRole |
32 |
31 |
33 |
32 |
34 class VariableItem: |
33 class VariableItem: |