This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2017-10-23 12:52:26 +02:00

41 lines
949 B
QML

import QtQuick 2.5
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.1
import QtQuick.Controls.Material 2.2
ToolBar {
id: root
Material.elevation: 1
property string text
property alias backButtonVisible: backButton.visible
default property alias data: layout.data
signal backPressed();
Rectangle {
anchors.fill: parent
color: "#fefefe"
}
RowLayout {
id: layout
anchors { fill: parent; leftMargin: app.margins; rightMargin: app.margins }
HeaderButton {
id: backButton
imageSource: "../images/back.svg"
onClicked: root.backPressed();
}
Label {
id: label
Layout.fillWidth: true
Layout.fillHeight: true
verticalAlignment: Text.AlignVCenter
font.pixelSize: app.largeFont
color: "#333"
text: root.text.toUpperCase()
}
}
}