mirror of
https://github.com/QuasarApp/ViewSolutions.git
synced 2025-04-26 17:54:41 +00:00
update fix
This commit is contained in:
parent
2f6fecae9a
commit
ee0a47e6d6
@ -9,7 +9,8 @@ import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
RowLayout {
|
||||
|
||||
ToolBar {
|
||||
|
||||
id: root
|
||||
property int titlesAligh: Text.AlignHCenter
|
||||
@ -22,30 +23,36 @@ RowLayout {
|
||||
signal backClicked()
|
||||
signal closeClicked()
|
||||
|
||||
ToolButton {
|
||||
contentItem: RowLayout {
|
||||
|
||||
visible: root.backButton
|
||||
text: "<<"
|
||||
|
||||
onClicked: {
|
||||
root.backClicked()
|
||||
ToolButton {
|
||||
|
||||
visible: root.backButton
|
||||
text: "<<"
|
||||
|
||||
onClicked: {
|
||||
root.backClicked()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
id: centralTitle
|
||||
text: (root.titleUppercase)? root.title.toUpperCase(): root.title
|
||||
horizontalAlignment: root.titlesAligh
|
||||
Layout.fillWidth: true;
|
||||
Text {
|
||||
id: centralTitle
|
||||
text: (root.titleUppercase)? root.title.toUpperCase(): root.title
|
||||
horizontalAlignment: root.titlesAligh
|
||||
Layout.fillWidth: true;
|
||||
|
||||
}
|
||||
|
||||
ToolButton {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
text: "x"
|
||||
onClicked: root.closeClicked()
|
||||
visible: root.closeButton
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ToolButton {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
text: "x"
|
||||
onClicked: root.closeClicked()
|
||||
visible: root.closeButton
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user