self.enable_plugin(self._keyboardPlugins.lookup_plugin("Computer"))
self.enable_plugin(self._keyboardPlugins.lookup_plugin("Alphabet"))
+ self._scrollTimer = QtCore.QTimer()
+ self._scrollTimer.setInterval(0)
+ self._scrollTimer.setSingleShot(True)
+ self._scrollTimer.timeout.connect(self._on_delayed_scroll_to_bottom)
+ self._scrollTimer.start()
+
self.set_fullscreen(self._app.fullscreenAction.isChecked())
self.set_orientation(self._app.orientationAction.isChecked())
f.write("%s\n" % line)
@misc_utils.log_exception(_moduleLogger)
+ def _on_delayed_scroll_to_bottom(self):
+ with qui_utils.notify_error(self._app.errorLog):
+ self._historyView.scroll_to_bottom()
+
+ @misc_utils.log_exception(_moduleLogger)
def _on_child_close(self, something = None):
with qui_utils.notify_error(self._app.errorLog):
self._child = None
self._historyStore.appendRow(row)
index = result.index()
- self._historyView.scrollTo(index)
+ self._historyView.scrollToBottom()
self._rowCount += 1
def pop(self):
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):