MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / _initModel

Method _initModel

Widgets/TreeView.py:32–37  ·  view source on GitHub ↗

设置目录树Model

(self)

Source from the content-addressed store, hash-verified

30 self._initSignals()
31
32 def _initModel(self):
33 """设置目录树Model"""
34 self._dmodel = QStandardItemModel(self)
35 self._fmodel = SortFilterModel(self)
36 self._fmodel.setSourceModel(self._dmodel)
37 self.setModel(self._fmodel)
38
39 def _initSignals(self):
40 Signals.itemJumped.connect(self.onItemJumped)

Callers 1

__init__Method · 0.95

Calls 1

SortFilterModelClass · 0.90

Tested by

no test coverage detected