diff options
| author | tassaron | 2017-08-20 17:47:00 -0400 |
|---|---|---|
| committer | tassaron | 2017-08-20 17:47:00 -0400 |
| commit | be9eb9077b2234e6d91c78d70bb8e1d8347b03aa (patch) | |
| tree | 12688f1846cfc535408d2a3953d0731eed98fd10 /src/gui/mainwindow.py | |
| parent | d4b63e4d4612db262424fe10c83f8eaa4f741f24 (diff) | |
relative widgets scale properly when undoing at different resolutions
Diffstat (limited to 'src/gui/mainwindow.py')
| -rw-r--r-- | src/gui/mainwindow.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/mainwindow.py b/src/gui/mainwindow.py index 833d2d1..2841896 100644 --- a/src/gui/mainwindow.py +++ b/src/gui/mainwindow.py @@ -88,10 +88,13 @@ class MainWindow(QtWidgets.QMainWindow): self.previewWorker.imageCreated.connect(self.showPreviewImage) self.previewThread.start() - log.debug('Starting preview timer') + timeout = 500 + log.debug( + 'Preview timer set to trigger when idle for %sms' % str(timeout) + ) self.timer = QtCore.QTimer(self) self.timer.timeout.connect(self.processTask.emit) - self.timer.start(500) + self.timer.start(timeout) # Begin decorating the window and connecting events self.window.installEventFilter(self) |
