def __init__(self, parent, app):
qwrappers.WindowWrapper.__init__(self, parent, app)
self._window.setWindowTitle("%s" % constants.__pretty_app_name__)
+ #self._freezer = qwrappers.AutoFreezeWindowFeature(self._app, self._window)
self._historyView = qhistory.QCalcHistory(self._app.errorLog)
self._userEntry = QValueEntry()
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