VirtualBox

Changeset 57628 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Sep 4, 2015 1:05:51 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: 8010: GUI MessageBox: Passing the right default focus to Messagebox API as the effect of change in r102504.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r57591 r57628  
    183183{
    184184    return (message(pParent, type, strMessage, strDetails, pcszAutoConfirmId,
    185                     AlertButton_Ok | AlertButtonOption_Default,
    186                     AlertButton_Cancel | AlertButtonOption_Escape,
     185                    AlertButton_Ok,
     186                    AlertButton_Cancel | AlertButtonOption_Default | AlertButtonOption_Escape,
    187187                    0 /* third button */,
    188188                    strOkButtonText,
     
    220220{
    221221    return (question(pParent, type, strMessage, pcszAutoConfirmId,
    222                      AlertButton_Ok | AlertButtonOption_Default,
    223                      AlertButton_Cancel | AlertButtonOption_Escape,
     222                     AlertButton_Ok,
     223                     AlertButton_Cancel | AlertButtonOption_Default | AlertButtonOption_Escape,
    224224                     0 /* third button */,
    225225                     strOkButtonText,
     
    670670                   strText, QString(),
    671671                   0 /* auto-confirm id */,
    672                    AlertButton_Ok | AlertButtonOption_Default,
    673                    AlertButton_Cancel | AlertButtonOption_Escape,
     672                   AlertButton_Ok,
     673                   AlertButton_Cancel | AlertButtonOption_Default | AlertButtonOption_Escape,
    674674                   0,
    675675                   tr("Remove")) :
     
    678678                   0 /* auto-confirm id */,
    679679                   AlertButton_Choice1,
    680                    AlertButton_Choice2 | AlertButtonOption_Default,
    681                    AlertButton_Cancel | AlertButtonOption_Escape,
     680                   AlertButton_Choice2,
     681                   AlertButton_Cancel | AlertButtonOption_Default | AlertButtonOption_Escape,
    682682                   tr("Delete all files"),
    683683                   tr("Remove only"));
     
    831831                             tr("Create a snapshot of the current machine state"),
    832832                             !gEDataManager->messagesWithInvertedOption().contains("confirmSnapshotRestoring"),
    833                              AlertButton_Ok | AlertButtonOption_Default,
    834                              AlertButton_Cancel | AlertButtonOption_Escape,
     833                             AlertButton_Ok,
     834                             AlertButton_Cancel | AlertButtonOption_Default | AlertButtonOption_Escape,
    835835                             0 /* 3rd button */,
    836836                             tr("Restore"), tr("Cancel"), QString() /* 3rd button text */) :
     
    840840                   QString() /* details */,
    841841                   0 /* auto-confirm id */,
    842                    AlertButton_Ok | AlertButtonOption_Default,
    843                    AlertButton_Cancel | AlertButtonOption_Escape,
     842                   AlertButton_Ok,
     843                   AlertButton_Cancel | AlertButtonOption_Default | AlertButtonOption_Escape,
    844844                   0 /* 3rd button */,
    845845                   tr("Restore"), tr("Cancel"), QString() /* 3rd button text */);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette