// Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause import QtQuick import Thermostat Window { id: window width: Constants.width height: Constants.height minimumHeight: 272 minimumWidth: Qt.PrimaryOrientation === Qt.LandscapeOrientation ? 480 : 360 visible: true title: "Thermostat" HomePage { id: mainScreen anchors.fill: parent } Component.onCompleted: { Constants.isBigDesktopLayout = Qt.binding( function(){ return window.width >= Constants.width && window.width >= window.height }) Constants.isSmallDesktopLayout = Qt.binding( function(){ return window.width >= 647 && window.width < Constants.width && window.width >= window.height }) Constants.isMobileLayout = Qt.binding( function(){ return window.width < window.height }) Constants.isSmallLayout = Qt.binding( function(){ return window.width < 647 && window.width >= window.height }) } }