Qt UI: fix build in Mac OS X 10.9 using clang
Extra: fix clang warning:
comparison of unsigned expression >= 0 is always true