blob: 2ac33df38f6e7fc5b455032771e62de4347654bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
import QtQuick 2.15
import QtQuick.Templates 2.15 as T
import StudioTheme 1.0 as StudioTheme
Rectangle {
property alias tooltip: toolTipArea.tooltip
property alias icon: icon.text
property alias iconColor: icon.color
property alias pixelSize: icon.font.pixelSize
property alias horizontalAlignment: icon.horizontalAlignment
implicitWidth: StudioTheme.Values.controlLabelWidth
implicitHeight: StudioTheme.Values.controlLabelWidth
color: "transparent"
border.color: "transparent"
T.Label {
id: icon
anchors.fill: parent
color: StudioTheme.Values.themeIconColor
text: ""
font.family: StudioTheme.Constants.iconFont.family
font.pixelSize: StudioTheme.Values.myIconFontSize
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
ToolTipArea {
id: toolTipArea
anchors.fill: parent
}
}
|