diff options
author | Robert Griebl <robert.griebl@qt.io> | 2022-05-13 22:42:08 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2022-07-01 12:41:23 +0000 |
commit | 4c845c092c550d118d7ca3a4ca863aa94ec78882 (patch) | |
tree | 1aa7f8f1ac8a0a487b7082bfea1b0c26d53f4609 /Main.qml | |
parent | df878f3935fe28dd3d7253b9fa59d65db331eed0 (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.qml | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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(); |