VirtualBox

Changeset 107133 in vbox


Ignore:
Timestamp:
Nov 25, 2024 4:17:23 PM (8 weeks ago)
Author:
vboxsync
Message:

FE/Qt: Make sure Help button shortcuts across project assigned after corresponding buttons received a new name; Otherwise old assignment will be lost.

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

Legend:

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

    r106282 r107133  
    307307            connect(m_pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed,
    308308                    m_pButtonBox, &QIDialogButtonBox::sltHandleHelpRequest);
    309             m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));
    310309            uiCommon().setHelpKeyword(m_pButtonBox->button(QIDialogButtonBox::Help), "snapshots");
    311310
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleManager.cpp

    r106061 r107133  
    4747#include "UICloudConsoleManager.h"
    4848#include "UIMessageCenter.h"
     49#include "UIShortcutPool.h"
    4950#include "UITranslationEventListener.h"
    5051#include "QIToolBar.h"
     
    11931194    button(ButtonType_Apply)->setShortcut(QString("Ctrl+Return"));
    11941195    button(ButtonType_Close)->setShortcut(Qt::Key_Escape);
     1196    button(ButtonType_Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));
    11951197    button(ButtonType_Reset)->setToolTip(tr("Reset Changes (%1)").arg(button(ButtonType_Reset)->shortcut().toString()));
    11961198    button(ButtonType_Apply)->setToolTip(tr("Apply Changes (%1)").arg(button(ButtonType_Apply)->shortcut().toString()));
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp

    r106061 r107133  
    195195        m_buttons[ButtonType_Help] = m_pButtonBox->button(QDialogButtonBox::Help);
    196196
    197         /* Assign shortcuts: */
    198         button(ButtonType_Close)->setShortcut(Qt::Key_Escape);
    199         button(ButtonType_Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));
    200 
    201197        /* Hide some of buttons initially: */
    202198        button(ButtonType_Reset)->hide();
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r106467 r107133  
    831831    pMainLayout->addWidget(m_pButtonBox);
    832832
    833     connect(m_pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed,
     833    connect(m_pButtonBox->button(QDialogButtonBox::Help), &QPushButton::pressed,
    834834            m_pButtonBox, &QIDialogButtonBox::sltHandleHelpRequest);
    835 
    836     m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));
    837835
    838836    connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVisoCreatorDialog::close);
     
    840838
    841839
    842     uiCommon().setHelpKeyword(m_pButtonBox->button(QIDialogButtonBox::Help), "create-optical-disk-image");
     840    uiCommon().setHelpKeyword(m_pButtonBox->button(QDialogButtonBox::Help), "create-optical-disk-image");
    843841
    844842    sltRetranslateUI();
     
    856854    }
    857855    if (m_pButtonBox && m_pButtonBox->button(QDialogButtonBox::Help))
     856    {
    858857        m_pButtonBox->button(QDialogButtonBox::Help)->setToolTip(UIVisoCreatorWidget::tr("Opens the help browser and navigates to the related section"));
     858        m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));
     859    }
    859860    updateWindowTitle();
    860861}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp

    r106061 r107133  
    276276        /* Configure button-box: */
    277277        m_pButtonBox->setStandardButtons(QDialogButtonBox::Close | QDialogButtonBox::Help);
    278         m_pButtonBox->button(QDialogButtonBox::Close)->setShortcut(Qt::Key_Escape);
    279         m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));
    280278        uiCommon().setHelpKeyword(m_pButtonBox->button(QDialogButtonBox::Help), "vm-session-information");
    281279        connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVMInformationDialog::sigClose);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp

    r107078 r107133  
    205205        pButtonHelp->setText(tr("&Help"));
    206206        pButtonHelp->setToolTip(tr("Open corresponding Help topic."));
     207        pButtonHelp->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));
    207208    }
    208209
     
    549550                    connect(wizardButton(WizardButtonType_Help), &QPushButton::clicked,
    550551                            this, &UINativeWizard::sltHandleHelpRequest);
    551                     wizardButton(WizardButtonType_Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));
    552552                    uiCommon().setHelpKeyword(this, m_strHelpKeyword);
    553553                }
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