From 2de7706ec063638268aa0a0ee78673e179b6b174 Mon Sep 17 00:00:00 2001 From: Sebastian Palencsar Date: Mon, 22 Jun 2026 16:55:17 +0200 Subject: [PATCH] fix: expose dialog aliases so About and Manual+ open (1.0.8) HeaderNavigation and StationCard access dialogs via app.aboutDialog etc., but Main.qml never exported those ids as property aliases after the QML module refactor. Align AboutDialog anchoring with the other dialogs. --- CMakeLists.txt | 2 +- de.nerdbear.bearwave.json | 2 +- de.nerdbear.bearwave.metainfo.xml | 7 +++++++ src/qml/Main.qml | 3 +++ src/qml/components/AboutDialog.qml | 6 +++--- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 75da36b..e21535a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.16) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -project(bearwave VERSION 1.0.7 LANGUAGES CXX) +project(bearwave VERSION 1.0.8 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/de.nerdbear.bearwave.json b/de.nerdbear.bearwave.json index d3079c2..0f62b8b 100644 --- a/de.nerdbear.bearwave.json +++ b/de.nerdbear.bearwave.json @@ -1,6 +1,6 @@ { "app-id": "de.nerdbear.bearwave", - "version": "1.0.7", + "version": "1.0.8", "runtime": "org.kde.Platform", "runtime-version": "6.10", "sdk": "org.kde.Sdk", diff --git a/de.nerdbear.bearwave.metainfo.xml b/de.nerdbear.bearwave.metainfo.xml index 25361ae..a5ec389 100644 --- a/de.nerdbear.bearwave.metainfo.xml +++ b/de.nerdbear.bearwave.metainfo.xml @@ -59,6 +59,13 @@ + + +
    +
  • Fixed About, Add station, and Edit station dialogs not opening after QML refactor
  • +
+
+
    diff --git a/src/qml/Main.qml b/src/qml/Main.qml index ecef207..05127aa 100644 --- a/src/qml/Main.qml +++ b/src/qml/Main.qml @@ -34,6 +34,9 @@ ApplicationWindow { property string countrySearchText: "" property alias searchField: searchToolbar.searchField property alias stationList: stationPanel.stationList + property alias addDialog: addDialog + property alias editDialog: editDialog + property alias aboutDialog: aboutDialog function toast(message) { toastPopup.show(message) diff --git a/src/qml/components/AboutDialog.qml b/src/qml/components/AboutDialog.qml index 5a77440..615ca27 100644 --- a/src/qml/components/AboutDialog.qml +++ b/src/qml/components/AboutDialog.qml @@ -11,11 +11,11 @@ Dialog { id: root required property bool compactMode - required property string appVersion - required property string buildId + property string appVersion: Qt.application.version + property string buildId: "?" modal: true - anchors.centerIn: Overlay.overlay + anchors.centerIn: parent width: compactMode ? 360 : 520 height: compactMode ? 560 : 680 standardButtons: Dialog.Ok