diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2024-02-06 16:46:09 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2024-02-08 08:47:13 +0000 |
commit | f4f2d62d45ee97041db5c69b604982d5b2cec29c (patch) | |
tree | f63773b5aa11f10518369eb7a01f3cbac4f7d70f | |
parent | 31bdbf8d6d868d47927a3aafc97f88af40b9e23d (diff) |
Use demo title in info dialog
Show the actual demo title, instead of generic "About Current Demo".
Change-Id: I29bab4dd368962cb6acb219a2662426d402e4cb5
Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io>
-rw-r--r-- | QtLauncher/DemoInfoPopup.qml | 2 | ||||
-rw-r--r-- | QtLauncher/MainWindow.qml | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/QtLauncher/DemoInfoPopup.qml b/QtLauncher/DemoInfoPopup.qml index cc6c899..2650adc 100644 --- a/QtLauncher/DemoInfoPopup.qml +++ b/QtLauncher/DemoInfoPopup.qml @@ -8,6 +8,7 @@ Item { id: demoInfoPopup required property real pageMargin property alias description: tt.text + property alias title: infoTitle.text function open() { @@ -76,7 +77,6 @@ Item { color: "white" font.family: ViewSettings.appFont font.styleName: "SemiBold" - text: qsTr("About Current Demo") wrapMode: Text.WordWrap } diff --git a/QtLauncher/MainWindow.qml b/QtLauncher/MainWindow.qml index 8502605..a964531 100644 --- a/QtLauncher/MainWindow.qml +++ b/QtLauncher/MainWindow.qml @@ -30,6 +30,7 @@ Item { function launchFromIndex(index: int) { demoInfoPopup.description = applicationsModel.query(index, "description") + demoInfoPopup.title = applicationsModel.query(index, "name") demoHeader.title = applicationsModel.query(index, "name") mainWindow.compositor.scalableDemo = applicationsModel.query(index, "scalable") |