Backport of Qt5 applicationName handling
authorSamuel Gaist <samuel.gaist@edeltech.ch>
Thu, 31 Oct 2013 09:18:30 +0000 (10:18 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 2 Nov 2013 22:33:02 +0000 (23:33 +0100)
commitbe4e275fdb2f144b79c90b7fe612132ab3dbc0a9
tree5cdad9725053da407c9073333eaacdd4b9977aa0
parent8f84a6e549b90286afb2e4af378ea8b271babcd5
Backport of Qt5 applicationName handling

Currently applicationName returns an empty value unless the user
explicitly sets it. Qt 5 is smarter and get the name either based on the
application arguments or a platform specific way (e.g. OS X using the
menu bar name) if the user didn't set it.

Based on f04b46f34e9446417cd5681f511332344679ef30
and 696060134d10d44175970ffd38618544ecdd9387

Change-Id: Ifc17cf4a74fed8cfabb46b3540dfbd64a5452640
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/kernel/qcoreapplication.cpp
src/corelib/kernel/qcoreapplication_p.h