WinRT: Correction in processEvents()

This should fix events which may have been delivered out-of-order
due to the early return in the WinRT event dispatcher.

Change-Id: If069b09fa1379bed6c3e1e1e8399198dc156ed0e
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
WinRT: Readded QFileSystemEngine::id

Change-Id: I0729ecca6a615bbdb590f90d4257d17c4a10f11a
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Fixed crash in qeventdispatcher_winrt.cpp

The qthread autotest tried to Release the timerFactory before it was
initialized.

Change-Id: Ib7588632b9f48d56904632652e1a759595691e70
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
WinRT: Improve key handling

Change mapping strategy to use operating system's key translation.
Do not map character keys, but do map meta keys.
This replaces the existing key mapper, so squash with daa3d5.

Change-Id: I414027b9a58f702701faf2b7f7d7a9488e8e51a2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Make better use of window state flags

Now that all top-levels have fullscreen geometry, we can utilize
window flags for semantic resizing. WinRT supports hidden, snapped,
filled, and fullscreen modes which logically correspond to minimized,
normal, maximized, and fullscreen. Through this mapping, existing
Qt APIs such as showFullscreen() can be used to break out of a snap.
Additionally, the application is able to use the window state flags to
determine its semantic viewport size.

Change-Id: Idc3fca24f413867f599768e9ffab09de0f199a5d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
compile fix for Windows phone

Change-Id: Icdcadfd31d0b564ba8fdd89aab7472b2e4aaed22
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Winrt: Fixed compilation of tst_qthread.cpp

Change-Id: I9b3ba920aa1874bbfa7ad499bf2a41c89ae87648
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
Update linker flags for WinRT platform

-ZW is no longer needed, and it seems the mkspec libs are not linked
by default.

Change-Id: I084475c869599897fe6d02ba24b0797be315a862
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>