From f7af24b2b33dbf5f31975aec4f0bed3168547363 Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 11 Apr 2025 13:06:25 -0700 Subject: [PATCH] feat: showcase alert dialog --- gallery/Main.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gallery/Main.qml b/gallery/Main.qml index 8e080a8..dbba12a 100644 --- a/gallery/Main.qml +++ b/gallery/Main.qml @@ -4,6 +4,7 @@ import Gallery import DesignSystem import QtQuick.Layouts import QtQuick.Controls.Basic +import QtQuick.Dialogs AppWindow { id: window @@ -49,5 +50,18 @@ AppWindow { } Switch {} + + AppPrimaryButton { + text: "Open message dialog" + onClicked: { + messageDialog.open() + } + } + + MessageDialog { + id: messageDialog + buttons: MessageDialog.Ok + text: "The document has been modified." + } } }