MCPcopy
hub / github.com/chidiwilliams/buzz / initStyleOption

Method initStyleOption

buzz/widgets/record_delegate.py:12–15  ·  view source on GitHub ↗
(self, option, index)

Source from the content-addressed store, hash-verified

10 self.callback = text_getter
11
12 def initStyleOption(self, option, index):
13 super().initStyleOption(option, index)
14 model: QSqlTableModel = index.model()
15 option.text = self.callback(model.record(index.row()))

Callers

nothing calls this directly

Calls 2

modelMethod · 0.80
callbackMethod · 0.80

Tested by

no test coverage detected