adde optimisations

This commit is contained in:
Andrei Yankovich 2020-10-09 23:37:20 +03:00
parent d886daf5d3
commit f61735ecd7
4 changed files with 9 additions and 26 deletions

View File

@ -13,7 +13,7 @@ if(TARGET ${PROJECT_NAME})
return()
endif()
set(DISABLE_EXAMPLES ON)
set(DISABLE_EXAMPLES OFF)
add_subdirectory(QuasarAppLib)
add_subdirectory(ViewSolutions)

@ -1 +1 @@
Subproject commit b4b9368f41f02a15a6d7a6e3682f5ae70fe931c5
Subproject commit cea929e9cbb3484a6244cf718a9490d6ac737a70

View File

@ -8,43 +8,26 @@ import ViewSolutionsModule 1.0
ListView {
id: viewPort
property real globalPos: 0
anchors.margins: 24
anchors.leftMargin: 40
anchors.rightMargin: 40
delegate: Component {
ViewPortGradientPage {
property var data: modelData
scrollPos: viewPort.globalPos
source: (data)? data.bakcBroundPicture: ""
viewPortDelegatW: viewPort.width
viewground: viewgroundItem
title: (data)? data.title: ""
text: (data)? data.sourceText: ""
textMargins: 40
width: viewPort.width
viewground: viewPort
height: 400
}
}
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
}
}

View File

@ -176,7 +176,7 @@
<context>
<name>main</name>
<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>
<translation>Примеры решений View</translation>
</message>