diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2017-05-09 13:31:20 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2017-08-30 11:45:34 +0000 |
commit | bc7895a7a09f9e91600ecf0392bda8f710966dbf (patch) | |
tree | b7c232323fe9263af573f890a287de1d146a6308 | |
parent | a91e1d3633d4b7be4398393373a73d26ab25fc01 (diff) |
Create the cluster view directly to the second display
The 'screen' QML property was introduced in Qt 5.9 and enables
to create component directly to the correct screen, instead of
moving it afterwards. Needed to support multiple displays in
Intel NUC with KMS.
Task-number: AUTOSUITE-111
Change-Id: I36a92838cb591fdec37eef0eed79114ead0407c7
Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
Reviewed-by: Nikolay Zamotaev <nzamotaev@luxoft.com>
-rw-r--r-- | sysui/cluster/ClusterMain.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysui/cluster/ClusterMain.qml b/sysui/cluster/ClusterMain.qml index 7326cb6..bb03685 100644 --- a/sysui/cluster/ClusterMain.qml +++ b/sysui/cluster/ClusterMain.qml @@ -30,7 +30,7 @@ ****************************************************************************/ import QtQuick 2.6 -import QtQuick.Window 2.2 +import QtQuick.Window 2.3 import QtApplicationManager 1.0 import com.pelagicore.ScreenManager 1.0 import utils 1.0 @@ -41,6 +41,7 @@ Window { height: Style.clusterHeight width: Style.clusterWidth visible: true + screen: Qt.application.screens[1] readonly property alias cluster: clusterItem @@ -53,7 +54,6 @@ Window { Component.onCompleted: { WindowManager.registerCompositorView(cluster) - ScreenManager.setScreen(cluster, 1) StartupTimer.checkpoint("Cluster window created!"); StartupTimer.createReport(); } |