summaryrefslogtreecommitdiff
path: root/CustToolbar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'CustToolbar.qml')
-rw-r--r--CustToolbar.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/CustToolbar.qml b/CustToolbar.qml
new file mode 100644
index 0000000..395d624
--- /dev/null
+++ b/CustToolbar.qml
@@ -0,0 +1,27 @@
+import QtQuick 2.12
+import QtQuick.Window 2.12
+import QtQuick.Controls 2.0
+import QtQuick.Layouts 1.0
+
+ToolBar
+{
+ property string title
+
+ RowLayout
+ {
+ anchors.fill: parent
+
+ ToolButton
+ {
+ text: "<"
+ onClicked: stack.pop()
+ visible: stack.depth > 1
+ }
+
+ Label
+ {
+ text: title
+ anchors.centerIn: parent
+ }
+ }
+}