src/eric7/UI/BrowserModel.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9413
80c06d472826
child 9482
a2bc06a54d9d
equal deleted inserted replaced
9472:5798ee4a8807 9473:3f23dbf37dbe
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

eric ide

mercurial