fixed hdpi screens

This commit is contained in:
Andrei Yankovich 2020-10-12 13:24:27 +03:00
parent b30eb0c24f
commit 6c82042102
3 changed files with 13 additions and 5 deletions

@ -1 +1 @@
Subproject commit cb5069cb740e91e72644584396436fc9e0054dd0
Subproject commit 78ba7867221accc3f45478d9c2431b0b473d2272

View File

@ -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

View File

@ -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 {