diff options
author | 2024-11-19 14:01:11 +0100 | |
---|---|---|
committer | 2024-11-19 14:01:22 +0100 | |
commit | 513de36724cfd7f56babc5ce47466f6e46737f4c (patch) | |
tree | b235eefacdf6a03d3f7aec7694b3dc842e82ec33 /app/TabImageButton.qml | |
parent | 77c661a3653402614e3e8bd5c1d99d94c4d5a4b3 (diff) |
Import Qt6 conversion patchHEADtrout_19.90.0trout/19.90.019.90.0master
Import the patches for the demo applications into the app repos.
Bug-AGL: SPEC-5294
Change-Id: I741f34da3a424706fdd0763b80794d7750eb2570
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'app/TabImageButton.qml')
-rw-r--r-- | app/TabImageButton.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/TabImageButton.qml b/app/TabImageButton.qml index 2176595..c707574 100644 --- a/app/TabImageButton.qml +++ b/app/TabImageButton.qml @@ -41,6 +41,7 @@ import QtQuick.Layouts 1.1 import QtQuick.Controls 2.2 import QtQuick.Controls.impl 2.2 import QtQuick.Templates 2.2 as T +import QtQuick.Controls.Basic 2.2 T.TabButton { id: control @@ -53,13 +54,13 @@ T.TabButton { padding: 6 - property url icon + property url iconSource contentItem: ColumnLayout { spacing: 20 Image { Layout.alignment: Qt.AlignCenter - source: control.icon + source: control.iconSource width: 96 height: 96 @@ -70,7 +71,7 @@ T.TabButton { font: control.font elide: Text.ElideRight opacity: enabled ? 1 : 0.3 - color: !control.checked ? Default.textLightColor : control.down ? Default.textDarkColor : Default.textColor + color: !control.checked ? Basic.textLightColor : control.down ? Basic.textDarkColor : Basic.textColor horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } @@ -78,7 +79,7 @@ T.TabButton { background: Rectangle { implicitHeight: 160 color: control.down - ? (control.checked ? Default.tabButtonCheckedPressedColor : Default.tabButtonPressedColor) - : (control.checked ? "transparent" : Default.tabButtonColor) + ? (control.checked ? Basic.tabButtonCheckedPressedColor : Basic.tabButtonPressedColor) + : (control.checked ? "transparent" : Basic.tabButtonColor) } } |