Fix for qmessagebox default softkey visibility + some tab/space fixes.
commit0139751ed083345afdbc3da231035f5df2d9cee0
authorJanne Anttila <janne.anttila@digia.com>
Wed, 11 Nov 2009 12:20:40 +0000 (11 14:20 +0200)
committerJason McDonald <jason.mcdonald@nokia.com>
Wed, 18 Nov 2009 06:00:13 +0000 (18 16:00 +1000)
tree63329ea0e7aa1c2f3a9ad650721574a192abdb55
parent267bfcf263fae15e6701f361af5f89f90679d712
Fix for qmessagebox default softkey visibility + some tab/space fixes.

Default actions get added after the QDialogButtonBox::event receives
show event. That's why 'ok' softkey action will not get added to the
widget. Changed implementation so that softkey actions are added to
widget when they are created.

This implementation is also more safe in a sence that if actions
are changed when message box is visible, the softkeys will be updated.

Task-number: QTBUG-5644
Task-number: QT-2211
Reviewed-by: Sami Merila
(cherry picked from commit a8b5418c70e0e2d3b4f9dc25c1383a78c4da8f22)
src/gui/widgets/qdialogbuttonbox.cpp