ScalingService: 1st pass of the refactoring via signals instead of nested bindings for better efficienty and compatibility with old versions of Qt
This commit is contained in:
parent
934c8c61b3
commit
210bbac583
31 changed files with 186 additions and 56 deletions
|
|
@ -11,7 +11,16 @@ Loader {
|
|||
asynchronous: true
|
||||
|
||||
property ShellScreen screen
|
||||
readonly property real scaling: screen ? ScalingService.scale(screen) : 1.0
|
||||
property real scaling: ScalingService.getScreenScale(screen)
|
||||
|
||||
Connections {
|
||||
target: ScalingService
|
||||
function onScaleChanged(screenName, scale) {
|
||||
if ((screen !== null) && (screenName === screen.name)) {
|
||||
scaling = scale
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property Component panelContent: null
|
||||
property int panelWidth: 1500
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue