Rename a slideno -> row for more consistency.

This commit is contained in:
Patrick Zimmermann 2013-04-16 19:33:36 +02:00
parent fd22d17d37
commit e4d3d8d6d2

View File

@ -143,15 +143,14 @@ class ListPreviewWidget(QtCore.QObject):
#stuff happens here, perhaps the setFocus() has to happen later... #stuff happens here, perhaps the setFocus() has to happen later...
self.preview_table_widget.setFocus() self.preview_table_widget.setFocus()
def update_preview_selection(self, slideno): def update_preview_selection(self, row):
""" """
Utility method to update the selected slide in the list. Utility method to update the selected slide in the list.
""" """
if slideno > self.preview_table_widget.rowCount(): if row > self.preview_table_widget.rowCount():
self.preview_table_widget.selectRow( self.preview_table_widget.selectRow(self.preview_table_widget.rowCount() - 1)
self.preview_table_widget.rowCount() - 1)
else: else:
self.check_update_selected_slide(slideno) self.check_update_selected_slide(row)
def check_update_selected_slide(self, row): def check_update_selected_slide(self, row):
""" """