summaryrefslogtreecommitdiff
path: root/CustToolbar.qml
blob: dae6f5a1766b13c80fbcaab72ef5329def138a86 (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
import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0

ToolBar
{
    property string title

    ToolButton
    {
        text: "<"
        onClicked: stack.pop()
        visible: stack.depth > 1
        anchors.left: parent.left
        anchors.verticalCenter: parent.verticalCenter
    }

    Label
    {
        text: title
        Layout.fillWidth: true
        anchors.centerIn: parent
        elide: Label.ElideRight
    }
}