VirtualBox

Changeset 89968 in vbox


Ignore:
Timestamp:
Jun 30, 2021 9:17:13 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10049. Adding helpkeyowrd parameter to alert and error with question functions

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

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

    r89965 r89968  
    202202                                        const char *pcszAutoConfirmId /* = 0*/,
    203203                                        const QString &strOkButtonText /* = QString()*/,
    204                                         const QString &strCancelButtonText /* = QString()*/) const
     204                                        const QString &strCancelButtonText /* = QString()*/,
     205                                        const QString &strHelpKeyword /* = QString()*/) const
    205206{
    206207    return (message(pParent, enmType, strMessage, strDetails, pcszAutoConfirmId,
     
    210211                    strOkButtonText,
    211212                    strCancelButtonText,
    212                     QString() /* third button */) &
     213                    QString() /* third button text*/,
     214                    strHelpKeyword) &
    213215            AlertButtonMask) == AlertButton_Ok;
    214216}
     
    216218void UIMessageCenter::alert(QWidget *pParent, MessageType enmType,
    217219                           const QString &strMessage,
    218                            const char *pcszAutoConfirmId /* = 0*/) const
    219 {
    220     error(pParent, enmType, strMessage, QString(), pcszAutoConfirmId);
     220                           const char *pcszAutoConfirmId /* = 0*/,
     221                           const QString &strHelpKeyword /* = QString()*/) const
     222{
     223    error(pParent, enmType, strMessage, QString(), pcszAutoConfirmId, strHelpKeyword);
    221224}
    222225
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r89954 r89968  
    137137      * @param  pcszAutoConfirmId    Brings the auto-confirm ID.
    138138      * @param  strOkButtonText      Brings the Ok button text.
    139       * @param  strCancelButtonText  Brings the Cancel button text. */
     139      * @param  strCancelButtonText  Brings the Cancel button text.
     140      * @param  strHelpKeyword     Brings the help keyword string. */
    140141    bool errorWithQuestion(QWidget *pParent, MessageType enmType,
    141142                           const QString &strMessage,
     
    143144                           const char *pcszAutoConfirmId = 0,
    144145                           const QString &strOkButtonText = QString(),
    145                            const QString &strCancelButtonText = QString()) const;
     146                           const QString &strCancelButtonText = QString(),
     147                           const QString &strHelpKeyword = QString()) const;
    146148
    147149    /** Shows an 'Alert' type of 'Error'.
     
    150152      * @param  enmType            Brings the message-box type.
    151153      * @param  strMessage         Brings the message.
    152       * @param  pcszAutoConfirmId  Brings the auto-confirm ID. */
     154      * @param  pcszAutoConfirmId  Brings the auto-confirm ID.
     155      * @param  strHelpKeyword     Brings the help keyword string. */
    153156    void alert(QWidget *pParent, MessageType enmType,
    154157               const QString &strMessage,
    155                const char *pcszAutoConfirmId = 0) const;
     158               const char *pcszAutoConfirmId = 0,
     159               const QString &strHelpKeyword = QString()) const;
    156160
    157161    /** Shows a 'Question' type of 'Message'.
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