Bump to 1.0.4
[ejpi] / src / qhistory.py
index 759ba49..fdd48dd 100644 (file)
@@ -86,7 +86,7 @@ class QCalcHistory(history.AbstractHistory):
                self._historyStore.appendRow(row)
 
                index = result.index()
-               self._historyView.scrollTo(index)
+               self._historyView.scrollToBottom()
                self._rowCount += 1
 
        def pop(self):
@@ -111,6 +111,9 @@ class QCalcHistory(history.AbstractHistory):
                self._historyStore.clear()
                self._rowCount = 0
 
+       def scroll_to_bottom(self):
+               self._historyView.scrollToBottom()
+
        @misc_utils.log_exception(_moduleLogger)
        def _on_row_activated(self, index):
                with qui_utils.notify_error(self._errorLog):