mirror of
https://github.com/QuasarApp/DocsSite.git
synced 2025-04-30 22:04:31 +00:00
adde optimisations
This commit is contained in:
parent
d886daf5d3
commit
f61735ecd7
Site
@ -13,7 +13,7 @@ if(TARGET ${PROJECT_NAME})
|
|||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(DISABLE_EXAMPLES ON)
|
set(DISABLE_EXAMPLES OFF)
|
||||||
|
|
||||||
add_subdirectory(QuasarAppLib)
|
add_subdirectory(QuasarAppLib)
|
||||||
add_subdirectory(ViewSolutions)
|
add_subdirectory(ViewSolutions)
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b4b9368f41f02a15a6d7a6e3682f5ae70fe931c5
|
Subproject commit cea929e9cbb3484a6244cf718a9490d6ac737a70
|
@ -8,43 +8,26 @@ import ViewSolutionsModule 1.0
|
|||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: viewPort
|
id: viewPort
|
||||||
property real globalPos: 0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
anchors.margins: 24
|
anchors.margins: 24
|
||||||
anchors.leftMargin: 40
|
anchors.leftMargin: 40
|
||||||
anchors.rightMargin: 40
|
anchors.rightMargin: 40
|
||||||
|
|
||||||
delegate: Component {
|
delegate: Component {
|
||||||
|
|
||||||
ViewPortGradientPage {
|
ViewPortGradientPage {
|
||||||
property var data: modelData
|
property var data: modelData
|
||||||
scrollPos: viewPort.globalPos
|
|
||||||
source: (data)? data.bakcBroundPicture: ""
|
source: (data)? data.bakcBroundPicture: ""
|
||||||
viewPortDelegatW: viewPort.width
|
|
||||||
viewground: viewgroundItem
|
|
||||||
title: (data)? data.title: ""
|
title: (data)? data.title: ""
|
||||||
text: (data)? data.sourceText: ""
|
text: (data)? data.sourceText: ""
|
||||||
textMargins: 40
|
textMargins: 40
|
||||||
|
width: viewPort.width
|
||||||
|
viewground: viewPort
|
||||||
|
height: 400
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
spacing: 24
|
spacing: 24
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
|
||||||
onPositionChanged: {
|
|
||||||
viewPort.globalPos = position
|
|
||||||
}
|
|
||||||
visible: false
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Item{
|
|
||||||
id: viewgroundItem
|
|
||||||
anchors.left: parent.horizontalCenter
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -176,7 +176,7 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>main</name>
|
<name>main</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../ViewSolutions/Examples/src/main.qml" line="112"/>
|
<location filename="../../ViewSolutions/Examples/src/main.qml" line="113"/>
|
||||||
<source>Examples of View Solutions</source>
|
<source>Examples of View Solutions</source>
|
||||||
<translation>Примеры решений View</translation>
|
<translation>Примеры решений View</translation>
|
||||||
</message>
|
</message>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user