diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2020-11-02 11:15:52 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2020-11-18 09:52:02 +0000 |
commit | 9381a9e5c6c907ba05643b0789123d2dac00bb3b (patch) | |
tree | fe96df4c023a3b6f68aefee2e83c7cb0f006af49 /startupscreen/TextButton.qml | |
parent | a15beba02f95e56d1fe50eaf13b59b95b23d0e2c (diff) |
startupscreen: Add deployment guide
Use the html text from Boot to Qt documentation for the guide.
Some modification needed for the html file to remove header and footer,
use correct path to images and remove links:
sed -i -e '0,/$$$b2qt/d' -e '/@@@b2qt/,$d' -e 's|images/|assets/|' \
-e 's/<a [^>]*>//g' -e 's|</a>||g' assets/b2qt-tutorial-deploying.html
Since TextArea doesn't work correcly in Flickable with touch event,
use Text element with styling from dummy TextArea.
Task-number: QTBUG-87029
Change-Id: I5835fc684ad01d69e1bce7f6920dd5f561fbe56c
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
Reviewed-by: Tarja Sundqvist <tarja.sundqvist@qt.io>
Diffstat (limited to 'startupscreen/TextButton.qml')
-rw-r--r-- | startupscreen/TextButton.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/startupscreen/TextButton.qml b/startupscreen/TextButton.qml index e5f11fc..1eb8303 100644 --- a/startupscreen/TextButton.qml +++ b/startupscreen/TextButton.qml @@ -52,11 +52,22 @@ import QtQuick import StartupScreen Rectangle { + id: root + property alias fontSize: buttonLabel.font.pixelSize + signal pressed() + color: "#3a4055" radius: 0 + MouseArea { + anchors.fill: parent + onPressed: root.scale = 0.9 + onReleased: root.scale = 1.0 + onClicked: root.pressed() + } + Text { id: buttonLabel color: "white" |