From e31fd5fdcef4880c0aafead65b333ba9f93fc3e9 Mon Sep 17 00:00:00 2001 From: darklithium Date: Wed, 3 Jun 2026 00:27:53 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20SettingsPage=20zu=20Settings=20umbenannt?= =?UTF-8?q?=20f=C3=BCr=20Kompatibilit=C3=A4t=20-=20SettingsPage.qml=20->?= =?UTF-8?q?=20Settings.qml=20f=C3=BCr=20bessere=20QML-Engine-Kompatibilit?= =?UTF-8?q?=C3=A4t=20-=20onMoved=20->=20onValueChanged=20f=C3=BCr=20Slider?= =?UTF-8?q?-Signal-Handler=20(Qt-Version=20Kompatibilit=C3=A4t)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- qml/Main.qml | 7 +++++++ qml/{SettingsPage.qml => Settings.qml} | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) rename qml/{SettingsPage.qml => Settings.qml} (98%) diff --git a/qml/Main.qml b/qml/Main.qml index b2fb453..a31f58f 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -232,8 +232,15 @@ MainView { } // ================================================================ + SettingsPage { + id: settingsPage + } +======= // SEITE 1: EINSTELLUNGEN // ================================================================ + Settings { + id: settingsPage + }================================================================ SettingsPage { id: settingsPage } diff --git a/qml/SettingsPage.qml b/qml/Settings.qml similarity index 98% rename from qml/SettingsPage.qml rename to qml/Settings.qml index 2e44658..7efce8e 100644 --- a/qml/SettingsPage.qml +++ b/qml/Settings.qml @@ -106,7 +106,7 @@ Page { stepSize: 0.1 value: 0.5 - onMoved: { + onValueChanged: { var volume = musicVolumeSlider.value; py.call("fortunecookie.set_music_volume", [volume]); musicVolumeLabel.text = Math.round(volume * 100) + "%"; @@ -144,7 +144,7 @@ Page { stepSize: 0.1 value: 1.0 - onMoved: { + onValueChanged: { var volume = crackVolumeSlider.value; py.call("fortunecookie.set_crack_volume", [volume]); crackVolumeLabel.text = Math.round(volume * 100) + "%";