diff options
author | Andy Shaw <andy.shaw@qt.io> | 2019-03-28 23:51:40 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2019-03-29 08:35:37 +0000 |
commit | 1edf84eff083eb5412b4c5c7cd3bd8166f15f61f (patch) | |
tree | ca4017d74b25ea93b375d289ba7fe0b0e810438f /src/dialogs | |
parent | c901f6d2ee7f73f58881424b05d57360720fa7d9 (diff) | |
download | qtquickcontrols-1edf84eff083eb5412b4c5c7cd3bd8166f15f61f.tar.gz |
Dialog: Update the title on the window when changing it on the dialog
Change-Id: Id9c60bf10bc0d4fb28ee9a027b84e395e9cb745c
Fixes: QTBUG-74350
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/dialogs')
-rw-r--r-- | src/dialogs/qquickdialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dialogs/qquickdialog.cpp b/src/dialogs/qquickdialog.cpp index ef6a9a1f..4ccc0f9d 100644 --- a/src/dialogs/qquickdialog.cpp +++ b/src/dialogs/qquickdialog.cpp @@ -322,6 +322,8 @@ void QQuickDialog1::setTitle(const QString &arg) { if (m_title != arg) { m_title = arg; + if (m_dialogWindow) + m_dialogWindow->setTitle(m_title); emit titleChanged(); } } |