aboutsummaryrefslogtreecommitdiff
path: root/pages/merchant
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-07-23 21:24:41 +0200
committerselsta <selsta@sent.at>2019-07-24 05:24:37 +0200
commit1e64ebe17a9b704e2b59496cde4ddd59d9305c3d (patch)
treedd0d10750d6de686571a7d559de4276dca9da9af /pages/merchant
parent0461a2870106928cc40db2d6f39514898c68a292 (diff)
downloadmonzero-gui-1e64ebe17a9b704e2b59496cde4ddd59d9305c3d.tar.gz
monzero-gui-1e64ebe17a9b704e2b59496cde4ddd59d9305c3d.tar.xz
monzero-gui-1e64ebe17a9b704e2b59496cde4ddd59d9305c3d.zip
QML: warning fixes
Diffstat (limited to 'pages/merchant')
-rw-r--r--pages/merchant/MerchantCheckbox.qml77
1 files changed, 41 insertions, 36 deletions
diff --git a/pages/merchant/MerchantCheckbox.qml b/pages/merchant/MerchantCheckbox.qml
index 81eb924d..5483439e 100644
--- a/pages/merchant/MerchantCheckbox.qml
+++ b/pages/merchant/MerchantCheckbox.qml
@@ -4,38 +4,55 @@ import QtGraphicalEffects 1.0
import "../../components" as MoneroComponents
-RowLayout {
+Item {
id: root
- spacing: 10
property bool checked: false;
property alias text: content.text
signal changed;
- Rectangle {
- id: checkbox
- anchors.left: parent.left
- anchors.top: parent.top
- implicitHeight: 22
- width: 22
- radius: 5
+ width: checkBoxLayout.width
+ height: 22
- Image {
- id: imageChecked
- visible: root.checked
- anchors.centerIn: parent
- source: "qrc:///images/uncheckedIcon.png"
- }
- }
+ RowLayout {
+ id: checkBoxLayout
+ spacing: 10
- MoneroComponents.TextPlain {
- id: content
- font.pixelSize: 14
- font.bold: false
- color: "white"
- text: ""
- themeTransition: false
- }
+ Item {
+ height: root.height
+ width: root.height
+ Rectangle {
+ id: checkbox
+ anchors.fill: parent
+ radius: 5
+ Image {
+ id: imageChecked
+ visible: root.checked
+ anchors.centerIn: parent
+ source: "qrc:///images/uncheckedIcon.png"
+ }
+ }
+ DropShadow {
+ anchors.fill: source
+ cached: true
+ horizontalOffset: 3
+ verticalOffset: 3
+ radius: 8.0
+ samples: 16
+ color: "#20000000"
+ smooth: true
+ source: checkbox
+ }
+ }
+ MoneroComponents.TextPlain {
+ id: content
+ font.pixelSize: 14
+ font.bold: false
+ color: "white"
+ text: ""
+ themeTransition: false
+ }
+ }
MouseArea {
anchors.fill: parent
hoverEnabled: true
@@ -46,16 +63,4 @@ RowLayout {
changed();
}
}
-
- DropShadow {
- anchors.fill: source
- cached: true
- horizontalOffset: 3
- verticalOffset: 3
- radius: 8.0
- samples: 16
- color: "#20000000"
- smooth: true
- source: checkbox
- }
}