MCPcopy
hub / github.com/PyQt5/PyQt / doQuery

Method doQuery

QTreeView/TestModelModify.py:83–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 self.setupModel()
82
83 def doQuery(self):
84 self.editText.clear()
85 path = self.editPath.text().strip()
86 if not path:
87 return
88
89 item = self.model.findPath(path)
90
91 if item:
92 self.editText.appendPlainText(
93 str(
94 {
95 "path": item.path,
96 "text": item.text(),
97 "value": item.valueItem.edit,
98 }
99 )
100 )
101
102 def doModify(self):
103 self.editText.clear()

Callers

nothing calls this directly

Calls 3

findPathMethod · 0.80
clearMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected