From 4b87b6e5d6c60bd8c17352cabfdc47d157d0b317 Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio Date: Tue, 23 Sep 2014 10:45:48 +0200 Subject: [PATCH] Fix: update terminal image on resize and font change. --- app/qml/PreprocessedTerminal.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/qml/PreprocessedTerminal.qml b/app/qml/PreprocessedTerminal.qml index 3e4bda7..5d6118a 100644 --- a/app/qml/PreprocessedTerminal.qml +++ b/app/qml/PreprocessedTerminal.qml @@ -93,6 +93,9 @@ Item{ } } + onWidthChanged: update(); + onHeightChanged: update(); + FontLoader{ id: fontLoader } Text{id: fontMetrics; text: "B"; visible: false} @@ -105,6 +108,7 @@ Item{ height = Qt.binding(function() {return Math.floor(terminalContainer.height / screenScaling);}); setLineSpacing(lineSpacing); + update(); restartBlurredSource(); } Component.onCompleted: {