contrib: update Qt4 to 4.8.1

cross.patch update by John Freed
(cherry picked from commit cd0148a5a1d5e5875f525c04225add1975a9dd78)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
macosx: added a basic script and some entitlements to enable Sandboxing on OS X Lion (refs #5149)
(cherry picked from commit eba61d4f3b94f0539c5e250b3222b24c543b67be)
Qt4: negative days for updates checking makes no sense
(cherry picked from commit b85cc5537812613a2988651c851b08fa34b7516a)

Close #7040

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
On the road to 2.0.3
package/macosx: enhanced the codesign script to add a designated signature to enhance its compatibility

Note 3 things

 - the included hashes are common knowledge, non-exploitable and hence don't constitute a security issue

 - you need a valid Developer ID private key to create GateKeeper compatible signatures

 - If you don't use VideoLAN's Dev ID, that's noticable but doesn't limit the app's behavior in any detail.

This commit also limits the signing process to the compiled lua scripts and no longer signs the entire lua folder since this would limit the usage experience and it isn't reasonable either.
(cherry picked from commit 41e20140b3bd4482cb02fe6eede5da471e57859d)
NEWS: added some Mac stuff for the next version
macosx: fixed font selector panel on certain setups

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
(cherry picked from commit 1bff0b7fe088ebbb50837b484df44c9f4467526b)
contrib: taglib: don't crash with strange files

Close #7036
Patch sent upstream
(cherry picked from commit c7f19291e969c9035c098b4aa4af9c52c8bc7aae)

Conflicts:

	contrib/src/taglib/rules.mak

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
vcd: fix off-by-one while scanning

scanf("%Ns", %buffer) require the buffer to be N+1 long.
(cherry picked from commit da89d251fc076b1df3b0d8ba5987e16371a1a59a)

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
dvb-scan: fix potential buffer overflow
(cherry picked from commit 396a1e896ff7307e721d5cfd616a55bc2fd950df)

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
macosx: change handling of arrow keys slightly

When the key is assigned to an main menu item: In this case the event
is never passed to the controls, so we want to handle it here for these
exeptional cases.

For all other cases: The event is ignored here and handled by the controls
(playlist, or video view, which also sends it to vlc core).
(cherry picked from commit 0ccbaa821f8b7b928c651df53db5ad50ed246b83)

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
macosx: fix handling of shortcuts which include shift
(cherry picked from commit 837e3ea601dc4d84c66dacd0dff5a8a250b9302f)

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
extras/package: fixed package script for OS X

(cherry picked from commit e996b4b4a3cc017cea89f85fa2d80aa165d882b9)
macosx: improve accessibility support for black ui

The commit adds additional attributes to the black windows in order to correctly
link to the close / zoom / maximize buttons. This is needed to get some
tools using this api to work, in particular / e.g. jitouch.
(cherry picked from commit 73b270549bb441dd2f273f93d492239b459f1513)

Signed-off-by: David Fuhrmann <david.fuhrmann@googlemail.com>
Update Qt to 4.8.2 from qt-project
(cherry picked from commit 97646e602b530224117fdfea2f35677a038f7c86)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
macosx: fixed time slider alignment issue

Pointed by Damien
(cherry picked from commit 20484554dc35aecc15fdb8c492d6a9ad591c5695)
macosx: fixed window button alignment when using the black UI mode

Pointed by Damien.

Manual back-port of f836a238bae817640c4f0a1b1c5289241e181eaa
contrib: taglib: use original patch present in taglib.git
(cherry picked from commit 40f0a08c4667a3b6497a1cdb2d57a081d4210226)
macosx: fixed incorrect shortcuts for playlist and playlist window

Pointed by David. Only the stable branch was affected.
Use a less broken hash in case you use libav