mirror of
https://github.com/QuasarApp/DocsSite.git
synced 2025-04-26 12:04:31 +00:00
fixed hdpi screens
This commit is contained in:
parent
b30eb0c24f
commit
6c82042102
@ -1 +1 @@
|
||||
Subproject commit cb5069cb740e91e72644584396436fc9e0054dd0
|
||||
Subproject commit 78ba7867221accc3f45478d9c2431b0b473d2272
|
@ -3,6 +3,7 @@ import QtQuick.Controls 2.15
|
||||
import QtQuick.Controls.Material 2.15
|
||||
import QtQuick.Controls.Universal 2.15
|
||||
import QtQuick.Layouts 1.14
|
||||
import QtQuick.Window 2.15
|
||||
|
||||
import ViewSolutionsModule 1.0
|
||||
|
||||
@ -10,8 +11,8 @@ ListView {
|
||||
id: viewPort
|
||||
|
||||
anchors.margins: 24
|
||||
anchors.leftMargin: 40
|
||||
anchors.rightMargin: 40
|
||||
anchors.leftMargin: 10
|
||||
anchors.rightMargin: 10
|
||||
|
||||
delegate: Component {
|
||||
|
||||
@ -20,7 +21,10 @@ ListView {
|
||||
source: (data)? data.bakcBroundPicture: ""
|
||||
title: (data)? data.title: ""
|
||||
text: (data)? data.sourceText: ""
|
||||
textMargins: 40
|
||||
sourceTextPixelSize: Math.max(width * 0.02, 4 * Screen.pixelDensity)
|
||||
headerTextPixelSize: Math.max(width * 0.04, 8 * Screen.pixelDensity)
|
||||
|
||||
textMargins: 20
|
||||
width: viewPort.width
|
||||
viewground: viewgroundItem
|
||||
listView: viewPort
|
||||
|
@ -35,7 +35,11 @@ ApplicationWindow {
|
||||
ListViewer {
|
||||
id: sourceList
|
||||
model: (mainModel)? mainModel.pageModel: null
|
||||
anchors.fill: parent
|
||||
|
||||
anchors.top: parent.top;
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width: parent.width - 40
|
||||
}
|
||||
|
||||
SideBar {
|
||||
|
Loading…
x
Reference in New Issue
Block a user