summaryrefslogtreecommitdiffstats
path: root/src/qml/assets/UIButton.qml
diff options
context:
space:
mode:
authorSzabolcs David <[email protected]>2023-03-08 15:04:07 +0100
committerSzabolcs David <[email protected]>2023-04-05 10:50:54 +0000
commit1fe0003d727bdacd30c552f01000c434971ad3ca (patch)
tree9bb8e594214e02c8230cea07387d47850bee9505 /src/qml/assets/UIButton.qml
parenta09ec269e8b296d39d78b45ae251edb3d7bada41 (diff)
Update project to work with Qt 6HEADdev
Also fix an old issue: tab view now presents preview images. Change-Id: I47eb48b626e62e53e130734c92cc7ec8ed9ecb66 Reviewed-by: Michal Klocek <[email protected]>
Diffstat (limited to 'src/qml/assets/UIButton.qml')
-rw-r--r--src/qml/assets/UIButton.qml28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/qml/assets/UIButton.qml b/src/qml/assets/UIButton.qml
index 38d3e5a..ec53bb3 100644
--- a/src/qml/assets/UIButton.qml
+++ b/src/qml/assets/UIButton.qml
@@ -27,10 +27,9 @@
**
****************************************************************************/
-import QtQuick 2.5
-import QtQuick.Controls 1.4
-import QtQuick.Controls.Styles 1.4
-import QtQuick.Layouts 1.2
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
ToolButton {
@@ -52,17 +51,16 @@ ToolButton {
font.family: defaultFontFamily
font.pixelSize: 28
}
- style: ButtonStyle {
- background: Rectangle {
- opacity: root.enabled ? 1.0 : 0.3
- color: root.pressed || root.checked ? root.highlightColor : root.color
- radius: root.radius
- Image {
- source: root.source
- width: Math.min(sourceSize.width, root.width)
- height: Math.min(sourceSize.height, root.height)
- anchors.centerIn: parent
- }
+
+ background: Rectangle {
+ opacity: root.enabled ? 1.0 : 0.3
+ color: root.pressed || root.checked ? root.highlightColor : root.color
+ radius: root.radius
+ Image {
+ source: root.source
+ width: Math.min(sourceSize.width, root.width)
+ height: Math.min(sourceSize.height, root.height)
+ anchors.centerIn: parent
}
}
}