mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
widgets for log details are not set automatically for each log
This commit is contained in:
parent
9fee13a58a
commit
b210e16c90
3 changed files with 0 additions and 12 deletions
|
|
@ -1053,7 +1053,6 @@ class TerminalModel(QtGui.QStandardItemModel):
|
|||
self.reset()
|
||||
|
||||
def reset(self):
|
||||
self.items_to_set_widget = queue.Queue()
|
||||
self.clear()
|
||||
|
||||
def prepare_records(self, result):
|
||||
|
|
@ -1144,7 +1143,6 @@ class TerminalModel(QtGui.QStandardItemModel):
|
|||
detail_item = QtGui.QStandardItem(detail_text)
|
||||
detail_item.setData(TerminalDetailType, Roles.TypeRole)
|
||||
top_item.appendRow(detail_item)
|
||||
self.items_to_set_widget.put(detail_item)
|
||||
|
||||
def update_with_result(self, result):
|
||||
for record in result["records"]:
|
||||
|
|
|
|||
|
|
@ -321,11 +321,6 @@ class PerspectiveWidget(QtWidgets.QWidget):
|
|||
data = {"records": records}
|
||||
self.terminal_model.reset()
|
||||
self.terminal_model.update_with_result(data)
|
||||
while not self.terminal_model.items_to_set_widget.empty():
|
||||
item = self.terminal_model.items_to_set_widget.get()
|
||||
widget = TerminalDetail(item.data(QtCore.Qt.DisplayRole))
|
||||
index = self.terminal_proxy.mapFromSource(item.index())
|
||||
self.terminal_view.setIndexWidget(index, widget)
|
||||
|
||||
self.records.button_toggle_text.setText(
|
||||
"{} ({})".format(self.l_rec, len_records)
|
||||
|
|
|
|||
|
|
@ -815,11 +815,6 @@ class Window(QtWidgets.QDialog):
|
|||
instance_item = self.instance_model.update_with_result(result)
|
||||
|
||||
self.terminal_model.update_with_result(result)
|
||||
while not self.terminal_model.items_to_set_widget.empty():
|
||||
item = self.terminal_model.items_to_set_widget.get()
|
||||
widget = widgets.TerminalDetail(item.data(QtCore.Qt.DisplayRole))
|
||||
index = self.terminal_proxy.mapFromSource(item.index())
|
||||
self.terminal_view.setIndexWidget(index, widget)
|
||||
|
||||
self.update_compatibility()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue