mirror of
https://github.com/QuasarApp/DocsSite.git
synced 2025-04-27 12:34:32 +00:00
adde optimisations
This commit is contained in:
parent
d886daf5d3
commit
f61735ecd7
@ -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
|
@ -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
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user