VirtualBox

Changeset 91296 in vbox


Ignore:
Timestamp:
Sep 17, 2021 11:23:17 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9080. Adding help button to VISO creator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r91242 r91296  
    2727#include "UIExtraDataManager.h"
    2828#include "UIIconPool.h"
     29#include "UIMessageCenter.h"
    2930#include "QIToolBar.h"
    3031#include "UIVisoHostBrowser.h"
     
    324325    if (m_pButtonBox)
    325326    {
    326         m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
     327        m_pButtonBox->setStandardButtons(QDialogButtonBox::Help | QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
    327328        m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape);
    328329        m_pMainLayout->addWidget(m_pButtonBox, 4, 3, 1, 5, Qt::AlignRight);
     330
     331        connect(m_pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed,
     332                &(msgCenter()), &UIMessageCenter::sltHandleHelpRequest);
     333        m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(QKeySequence::HelpContents);
     334
     335        uiCommon().setHelpKeyword(m_pButtonBox->button(QIDialogButtonBox::Help), "viso");
    329336    }
    330337}
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