aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2017-12-13 12:29:02 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2017-12-14 09:58:21 +0000
commit28668a9aee75110ec788406efca1caa2f25000df (patch)
tree464fe7680739b2c0dc03b63dcadd7907ed51d2eb
parente36344f70e62df8149e073e6273a774fc1936469 (diff)
Show cluster only if there is second screen available
Change-Id: I1a9644f1ff5d0097a0f81afcf4841bb99cbb3f9e Task-number: AUTOSUITE-163 Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
-rw-r--r--Main.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/Main.qml b/Main.qml
index 45ab13d..d2d3240 100644
--- a/Main.qml
+++ b/Main.qml
@@ -35,11 +35,12 @@ import QtQuick.Controls 2.0
import controls 1.0
import utils 1.0
import models.startup 1.0
+import com.pelagicore.ScreenManager 1.0
BackgroundPane {
id: root
- property bool showClusterIfPossible: ApplicationManager.systemProperties.showCluster && Style.withCluster
+ property bool showClusterIfPossible: ApplicationManager.systemProperties.showCluster && Style.withCluster && ScreenManager.screenCount() > 1
property var cluster
width: Style.screenWidth