5 |
5 |
6 """ |
6 """ |
7 Module implementing the browser model. |
7 Module implementing the browser model. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import contextlib |
11 import fnmatch |
11 import fnmatch |
12 import json |
12 import json |
13 import contextlib |
13 import os |
14 |
14 |
15 from PyQt6.QtCore import ( |
15 from PyQt6.QtCore import ( |
|
16 QAbstractItemModel, |
|
17 QCoreApplication, |
16 QDir, |
18 QDir, |
|
19 QFileSystemWatcher, |
17 QModelIndex, |
20 QModelIndex, |
18 QAbstractItemModel, |
21 QProcess, |
19 QFileSystemWatcher, |
|
20 Qt, |
22 Qt, |
21 QProcess, |
|
22 QCoreApplication, |
|
23 ) |
23 ) |
24 from PyQt6.QtGui import QImageReader, QFont |
24 from PyQt6.QtGui import QFont, QImageReader |
25 from PyQt6.QtWidgets import QApplication |
25 from PyQt6.QtWidgets import QApplication |
26 |
26 |
|
27 from eric7 import Preferences, Utilities |
27 from eric7.EricGui import EricPixmapCache |
28 from eric7.EricGui import EricPixmapCache |
28 from eric7 import Preferences, Utilities |
|
29 |
29 |
30 BrowserItemRoot = 0 |
30 BrowserItemRoot = 0 |
31 BrowserItemDirectory = 1 |
31 BrowserItemDirectory = 1 |
32 BrowserItemSysPath = 2 |
32 BrowserItemSysPath = 2 |
33 BrowserItemFile = 3 |
33 BrowserItemFile = 3 |