aboutsummaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/Button.qml21
-rw-r--r--qml/keydetails.qml8
2 files changed, 24 insertions, 5 deletions
diff --git a/qml/Button.qml b/qml/Button.qml
index 3c02dea..22469d1 100644
--- a/qml/Button.qml
+++ b/qml/Button.qml
@@ -4,9 +4,11 @@ import QtQuick 1.0
id: container
property variant text
+ property variant image
signal clicked
- height: text.height + 10; width: text.width + 20
+ height: buttonImage.height + 10;
+ width: text.width + buttonImage.width + 15
border.width: 1
radius: 4
smooth: true
@@ -30,11 +32,26 @@ import QtQuick 1.0
onClicked: container.clicked()
}
+ Image {
+ id: buttonImage
+ y: 5
+ x: 5
+ source: container.image
+ height: 25
+ width: 25
+ //anchors.horizontalCenter: parent.horizontalCenter
+ //anchors.fill: parent
+ }
+
Text {
id: text
- anchors.centerIn:parent
+ x: buttonImage.width +10
+ y: buttonImage.y
+ //anchors.centerIn:parent
font.pointSize: 10
text: parent.text
+ //anchors.verticalCenterOffset: 20
+ //anchors.horizontalCenterOffset: 59
color: activePalette.buttonText
}
}
diff --git a/qml/keydetails.qml b/qml/keydetails.qml
index 1a1517f..35bc67b 100644
--- a/qml/keydetails.qml
+++ b/qml/keydetails.qml
@@ -199,9 +199,10 @@ Rectangle {
Button {
id: exportPrivateKeyButton
- x: 316
+ x: 367
y: 392
text: qsTr("Export private key")
+ image: "qrc:/export_key_to_file.png"
onClicked: {
keydetails.exportPrivateKeyClicked();
}
@@ -210,9 +211,10 @@ Rectangle {
Button {
id: copyFingerprintButton
- x: 401
+ x: fingerprint.x + fingerprint.width + 10
y: 341
- text: qsTr("copy")
+ //text: qsTr("copy")
+ image: "qrc:/button_copy.png"
onClicked: {
fingerprint.selectAll();
fingerprint.copy();