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

Hedgewars: Native dialogs appearance

completed by: Darrel

mentors: koda, Andrey Korotaev, Xeli, Sheepy

[IMAGE http://gci.copyleftgames.org/img/icons/hedgewars.png]
[IMAGE http://gci.copyleftgames.org/img/icons/c++.png]
[IMAGE http://gci.copyleftgames.org/img/icons/qt.png]
[IMAGE http://gci.copyleftgames.org/img/icons/osx.png]

Remember to join our IRC channel when working on this task! We are on #hedgewars at freenode.net. 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.

Deliverable

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.