modified for supporting maemo platform (qt 4.7)