Add legacy alias browser.onRowChanged()

This commit is contained in:
RumovZ 2021-10-01 18:36:12 +02:00
parent 3a5d86c344
commit c146f33faa

View file

@ -437,6 +437,10 @@ class Browser(QMainWindow):
self._update_selection_actions() self._update_selection_actions()
gui_hooks.browser_did_change_row(self) gui_hooks.browser_did_change_row(self)
@deprecated(info="please use on_all_or_selected_rows_changed() instead.")
def onRowChanged(self, *args: Any) -> None:
self.on_all_or_selected_rows_changed()
def on_current_row_changed(self) -> None: def on_current_row_changed(self) -> None:
"""Called after the row of the current element has changed.""" """Called after the row of the current element has changed."""
if self._closeEventHasCleanedUp: if self._closeEventHasCleanedUp: