From 92bd9aecfb69ebe525ba88dc78ce85e3ca7ed9c2 Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 30 Nov 2012 19:37:02 +0100 Subject: Fix empty window title regression, add application display name to window title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This increases consistency a lot: all windows and dialogs from a Qt application will show the app display name in the caption, on Windows and X11. This helps identifying which app a dialog belongs to, which is especially useful when the dialog is very generic and shows up unexpectedly. For compatibility reasons, the app name is added to the caption only if setApplicationDisplayName() was called -- or if the caption would be completely empty. The standard Qt4 case (setWindowTitle + no display name) is unchanged. Change-Id: Ib284c62c1f4c0bc923e5bc2d10247d95e9aa76c1 Reviewed-by: Samuel Rødal --- dist/changes-5.0.0 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index a969fc84d5..84f0224bad 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -985,6 +985,11 @@ Qt for Windows CE Please, notice that QMetaType::UnknownType has value 0, which previously was reserved for QMetaType::Void. +- QWidget + + * No need to set the application name in setWindowTitle() anymore, this is done + automatically, on Windows and Unix/X11, provided that the (possibly translated) + application display name is set with QGuiApplication::setApplicationDisplayName(). - QMessageBox -- cgit v1.2.3