Fix potential GUI instability due to GUI elements being called in worker
thread (thanks @maxnet) - see comments on raspberrypi/noobs@5d4d793 for details.
Put code calling QWSServer inside #ifdef Q_WS_QWS

Allows one to compile and test the software under
the desktop edition of Qt.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
mbr.h: change signature field char -> unsigned char

In initdrivethread.cpp we are doing comparisions like this:

==
if (!(lbr.signature[0] == 0x55 && lbr.signature[1] == 0xAA)){
   emit error(tr("Logical boot record (LBR) not found"));
   return false;
}
==

0xAA (170) exceeds the range of the char data type (-128..127)
So use an unsigned char for the signature field of the mbr_table
record instead.

Prevents the following warning:

warning: comparison is always false due to limited range of data type [-

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Only relocate start of the FAT partition if not MiB aligned already

Moving the start of the recovery FAT partition can be a
write intensive operation.
Only do so when the partition is not MiB aligned already.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Support for large (2+ GB) recovery partitions

For use of NOOBS in other projects that use large images.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Merge pull request #79 from maxnet/dev

Support for large images and recovery partition sizes over 2 GB