summaryrefslogtreecommitdiff
path: root/src/mobile/qml/ImageButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/mobile/qml/ImageButton.qml')
-rw-r--r--src/mobile/qml/ImageButton.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mobile/qml/ImageButton.qml b/src/mobile/qml/ImageButton.qml
new file mode 100644
index 0000000..552a9b4
--- /dev/null
+++ b/src/mobile/qml/ImageButton.qml
@@ -0,0 +1,24 @@
+import QtQuick 2.1
+
+Rectangle {
+ id: imageButton
+
+ property bool show: true
+ property string icon: ""
+ property int corner: 6
+
+ border.width: 1
+ border.color: "gray"
+ radius: corner
+
+ Image{
+ id: nextIcon
+ anchors.fill: parent
+ fillMode: Image.PreserveAspectFit
+ source: imageButton.icon
+ height: parent.height
+ width: parent.height
+ anchors.right: parent.right
+ anchors.top: parent.top
+ }
+}