VirtualBox

Ignore:
Timestamp:
Jul 12, 2013 1:48:24 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Popup-center: More suitable *default* button (icon, tool-tip), similar thing for single-button case.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

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

    r47103 r47121  
    117117    message(pParent, strPopupPaneID,
    118118            strMessage, strDetails,
    119             AlertButton_Ok | AlertButtonOption_Default | AlertButtonOption_Escape /* 1st button */,
     119            AlertButton_Cancel | AlertButtonOption_Default | AlertButtonOption_Escape /* 1st button */,
    120120            0 /* 2nd button */,
    121             QString() /* 1st button text */,
     121            QApplication::translate("UIMessageCenter", "Close") /* 1st button text */,
    122122            QString() /* 2nd button text */,
    123123            fProposeAutoConfirmation);
     
    165165                                  const QString &strMessage, const QString &strDetails,
    166166                                  int iButton1, int iButton2,
    167                                   const QString &strButtonText1, const QString &strButtonText2,
     167                                  QString strButtonText1, QString strButtonText2,
    168168                                  bool fProposeAutoConfirmation)
    169169{
    170170    /* Make sure at least one button is valid: */
    171171    if (iButton1 == 0 && iButton2 == 0)
    172         iButton1 = AlertButton_Ok | AlertButtonOption_Default | AlertButtonOption_Escape;
     172    {
     173        iButton1 = AlertButton_Cancel | AlertButtonOption_Default | AlertButtonOption_Escape;
     174        strButtonText1 = QApplication::translate("UIMessageCenter", "Close");
     175    }
    173176
    174177    /* Check if popup-pane was auto-confirmed before: */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.h

    r47103 r47121  
    128128                       const QString &strMessage, const QString &strDetails,
    129129                       int iButton1, int iButton2,
    130                        const QString &strButtonText1, const QString &strButtonText2,
     130                       QString strButtonText1, QString strButtonText2,
    131131                       bool fProposeAutoConfirmation);
    132132
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneButtonPane.cpp

    r47107 r47121  
    188188    switch (iButtonID & AlertButtonMask)
    189189    {
    190         case AlertButton_Ok:      icon = UIIconPool::iconSet(":/delete_16px.png"); break;
     190        case AlertButton_Ok:      icon = UIIconPool::iconSet(":/ok_16px.png"); break;
    191191        case AlertButton_Cancel:  icon = UIIconPool::iconSet(":/cancel_16px.png"); break;
    192192        case AlertButton_Choice1: break;
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