aboutsummaryrefslogtreecommitdiff
path: root/BarTool.qml
diff options
context:
space:
mode:
Diffstat (limited to 'BarTool.qml')
-rw-r--r--BarTool.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/BarTool.qml b/BarTool.qml
new file mode 100644
index 0000000..99e5938
--- /dev/null
+++ b/BarTool.qml
@@ -0,0 +1,21 @@
+import QtQuick 2.9
+import QtQuick.Controls 1.4
+
+ToolButton
+{
+ property string image
+ property int tool: 0
+
+ implicitHeight: 32
+ implicitWidth: 32
+ Image
+ {
+ source: image
+ anchors { fill: parent; margins: 4 }
+ }
+ onClicked:
+ {
+ if ( tool )
+ window.tool = tool
+ }
+}