[qtdbus] Fix potential crash on unregistering a dbus object

Regression from 0b6509fc2f0173136db3fc357f09867d8e36ebd8

Will be merged with that commit in upstream.

Change-Id: I67ae8d1aa4430975d10e280112ace082919d9d80
Merge pull request #12 from special/qdbus-unregister-2

[qtdbus] Fix potential crash on unregistering a dbus object
Move winId!=0 assertion from QWindow to QWidget

In "very basic platform plugins", the platform window ID can be null,
which conflicts with QWidget's special treatment of 0 as a parented widget.
Such is the case with EGLFS, which can return a null native window handle
for winId on some EGL implementations.

Move the assertion winId!=0 into the widget framework, as this assert is
not relevant for non-widget applications. A large proportion of basic
platform plugin users will see relief from this unnecessary assertion.

Change-Id: I25c9d96550cd747c77c9516d773e9cdebf7440ab
Merge pull request #13 from xknight/winidassert

Move winId!=0 assertion from QWindow to QWidget
[qtbase] Support discovery of key evdev devices.
Merge pull request #14 from adenexter/master

[qtbase] Support discovery of key evdev devices.
Don't automatically create a platform window on content orientation change

The platform window creation is policy is such that native resources are
created only when necessary. Since QWindow already tracks
contentOrientation, there is no reason to implicitly create a platform
window when a content orientation change is reported. This makes
content orientation follow the same convention used by windowState.
Merge pull request #15 from xknight/master

Don't automatically create a platform window on content orientation chan...
Add newlines to qEmergencyOut output on stderr.

qt_message, in the regular case, calls qt_message_print, which invokes the
default message handler (qDefaultMessageHandler), which uses
qMessageFormatString to construct a string, and then platform-dependent methods
to print this out. This means that qMessageFormatString's newline is the one
that separates debug messages.

Unfortunately, in the emergency case, we don't have this luxury of doing
formatting: so just make sure to add a newline so output is readable.

Change-Id: I8f7bbceb9347b6312748f0f426feebaf04f6a226
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>

(cherry-picked from qtbase/e8af66f90684946eb56ffcce9fa0c7909ba0c390)