src/eric7/UI/SymbolsWidget.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
21 QLocale, 21 QLocale,
22 ) 22 )
23 from PyQt6.QtGui import QColor 23 from PyQt6.QtGui import QColor
24 from PyQt6.QtWidgets import QWidget, QHeaderView, QAbstractItemView 24 from PyQt6.QtWidgets import QWidget, QHeaderView, QAbstractItemView
25 25
26 from EricWidgets.EricApplication import ericApp 26 from eric7.EricWidgets.EricApplication import ericApp
27 27
28 from .Ui_SymbolsWidget import Ui_SymbolsWidget 28 from .Ui_SymbolsWidget import Ui_SymbolsWidget
29 29
30 import UI.PixmapCache 30 from eric7.EricGui import EricPixmapCache
31 import Preferences 31 from eric7 import Preferences
32 32
33 33
34 class SymbolsModel(QAbstractTableModel): 34 class SymbolsModel(QAbstractTableModel):
35 """ 35 """
36 Class implementing the model for the symbols widget. 36 Class implementing the model for the symbols widget.
514 @param parent reference to the parent widget (QWidget) 514 @param parent reference to the parent widget (QWidget)
515 """ 515 """
516 super().__init__(parent) 516 super().__init__(parent)
517 self.setupUi(self) 517 self.setupUi(self)
518 518
519 self.setWindowIcon(UI.PixmapCache.getIcon("eric")) 519 self.setWindowIcon(EricPixmapCache.getIcon("eric"))
520 520
521 self.__model = SymbolsModel(self) 521 self.__model = SymbolsModel(self)
522 self.symbolsTable.setModel(self.__model) 522 self.symbolsTable.setModel(self.__model)
523 self.symbolsTable.selectionModel().currentRowChanged.connect( 523 self.symbolsTable.selectionModel().currentRowChanged.connect(
524 self.__currentRowChanged 524 self.__currentRowChanged

eric ide

mercurial