Qt Insight - Qt Quick Application
// Copyright (C) 2017 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause import QtQuick 2.4 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.3 import Coffee 1.0 import QtInsightTracker 1.0 Row { id: row objectName: text signal clicked property alias text: brewLabel.text property bool forward: true layoutDirection: row.forward ? Qt.LeftToRight : Qt.RightToLeft spacing: 17 Text { id: brewLabel color: "#ffffff" text: qsTr("Brew Me a CUP") font.family: Constants.fontFamily wrapMode: Text.WrapAnywhere font.pixelSize: 64 font.capitalization: Font.AllUppercase } Image { id: image anchors.verticalCenter: parent.verticalCenter source: row.forward ? "images/ui controls/buttons/go/white.png" : "images/ui controls/buttons/back/white.png" scale: mouseArea.containsMouse ? 1.1 : 1 MouseArea { id: mouseArea hoverEnabled: true anchors.fill: parent Connections { function onClicked(mouse) { row.clicked() InsightTracker.interaction(row.text, "coffee"); } } } } }