mirror of
https://github.com/wassname/sloth.git
synced 2026-07-19 11:28:06 +08:00
return current index
This commit is contained in:
@@ -256,6 +256,9 @@ class MainWindow(QMainWindow):
|
||||
#self.setWindowModified(self.annotations.dirty())
|
||||
pass
|
||||
|
||||
def currentIndex(self):
|
||||
return self.current_index_
|
||||
|
||||
def setCurrentIndex(self, index):
|
||||
assert index.isValid()
|
||||
newindex = index.model().imageIndex(index)
|
||||
|
||||
Reference in New Issue
Block a user