summaryrefslogtreecommitdiff
path: root/CustToolbar.qml
blob: 395d6246a0336a9bbabab04e6dac99cdd8da07c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
        }
    }
}