Коммит 81312c54 создал по автору Konstantin Hvorov's avatar Konstantin Hvorov Зафиксировано автором Alexey Andreev
Просмотр файлов

[AppBar] Add only header appbar example. #29

владелец 5f6f3ccb
......@@ -130,6 +130,15 @@ Page {
text: qsTrId("ui-component-gallery-appbar-bottom-positioned-appbar")
}
Button {
onClicked: pageStack.push(onlyHeaderComponent)
anchors.horizontalCenter: parent.horizontalCenter
preferredWidth: Theme.buttonWidthSmall * 1.5
//% "Only header"
text: qsTrId("ui-component-gallery-app-bar-only-header")
}
Button {
onClicked: pageStack.push(splitviewComponent)
......@@ -279,6 +288,19 @@ Page {
}
}
Component {
id: onlyHeaderComponent
Page {
AppBar {
//% "Header"
headerText: qsTrId("ui-component-gallery-app-bar-header")
//% "Sub Header with long text"
subHeaderText: qsTrId("ui-component-gallery-app-bar-sub-header-with-long-text")
}
}
}
Component {
id: splitviewComponent
......
......@@ -3986,5 +3986,17 @@
<source>Multiline long long long description text</source>
<translation>Многострочный длинный длинный длинный текст описания</translation>
</message>
<message id="ui-component-gallery-app-bar-only-header">
<source>Only header</source>
<translation>Только заголовок</translation>
</message>
<message id="ui-component-gallery-app-bar-header">
<source>Header</source>
<translation>Заголовок</translation>
</message>
<message id="ui-component-gallery-app-bar-sub-header-with-long-text">
<source>Sub Header with long text</source>
<translation>Подзаголовок с длинным текстом</translation>
</message>
</context>
</TS>
......@@ -3986,5 +3986,17 @@
<source>Multiline long long long description text</source>
<translation>Multiline long long long description text</translation>
</message>
<message id="ui-component-gallery-app-bar-only-header">
<source>Only header</source>
<translation>Only header</translation>
</message>
<message id="ui-component-gallery-app-bar-header">
<source>Header</source>
<translation>Header</translation>
</message>
<message id="ui-component-gallery-app-bar-sub-header-with-long-text">
<source>Sub Header with long text</source>
<translation>Sub Header with long text</translation>
</message>
</context>
</TS>
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать