GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

Hedgewars: Native dialogs appearance

completed by: Darrel

mentors: koda, Andrey Korotaev, Xeli, Sheepy


Remember to join our IRC channel when working on this task! We are on #hedgewars at If you are new to IRC, read this tutorial from a past GCI participant.

Your task

Every dialog on OS X appears "modally", with a little sliding animation from the top. This follows the User Interface Guidelines for OS X application, but to be a 100% compliant, the positive answer ('ok') should always be the rightmost on. Your task is to invert setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel) for a dialogs when compiling for OS X; note that this task is *much* easier after doing the abstraction task.


A working patch, that applies cleanly to our source tree. This patch should be in the form of a pull from clone, hg export or unified diff format (in order of preference) implementing the functionality required.