aboutsummaryrefslogtreecommitdiffstats
path: root/Main.qml
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2022-05-13 22:42:08 +0200
committerRobert Griebl <robert.griebl@qt.io>2022-07-01 12:41:23 +0000
commit4c845c092c550d118d7ca3a4ca863aa94ec78882 (patch)
tree1aa7f8f1ac8a0a487b7082bfea1b0c26d53f4609 /Main.qml
parentdf878f3935fe28dd3d7253b9fa59d65db331eed0 (diff)
Port to Qt 6.2
- Build is warning free on Linux - Still using qmake - Custom fragmenShaders in the cluster are not ported yet - Qt 3D models are rendered, but the Studio 3D integration is untested Change-Id: I0e410a932d6461ba29e7c945cb5e9750d6df8964 Reviewed-by: Dominik Holland <dominik.holland@qt.io> Reviewed-by: Bramastyo Harimukti Santoso <bram.harimukti@gmail.com>
Diffstat (limited to 'Main.qml')
-rw-r--r--Main.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/Main.qml b/Main.qml
index 8d507c7f..77bfa501 100644
--- a/Main.qml
+++ b/Main.qml
@@ -49,7 +49,7 @@ QtObject {
readonly property RootStore store: RootStore {
clusterAvailable: instrumentClusterWindowLoader.item && instrumentClusterWindowLoader.item.visible
- onAccentColorChanged: {
+ onAccentColorChanged: function(newAccentColor) {
centerConsoleWindow.contentItem.Style.accentColor = newAccentColor;
if (instrumentClusterWindowLoader.item) {
instrumentClusterWindowLoader.item.contentItem.Style.accentColor = newAccentColor;
@@ -59,7 +59,7 @@ QtObject {
}
}
- onGrabImageRequested: {
+ onGrabImageRequested: function(screenshotCCPath, screenshotICPath) {
centerConsoleWindow.mainCenterConsole.grabToImage(function(result) {
var ret = result.saveToFile(screenshotCCPath);
console.info("Screenshot was", ret ? "" : "NOT", "saved to file", screenshotCCPath);
@@ -73,7 +73,7 @@ QtObject {
}
}
- onUpdateThemeRequested: {
+ onUpdateThemeRequested: function(currentTheme) {
var chosenTheme = currentTheme === 0 ? Style.Light : Style.Dark;
if (centerConsoleWindow.popupParent.visible) {
centerConsoleWindow.popupParent.updateOverlay();