Changeset 107133 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 25, 2024 4:17:23 PM (8 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/UITakeSnapshotDialog.cpp
r106282 r107133 307 307 connect(m_pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed, 308 308 m_pButtonBox, &QIDialogButtonBox::sltHandleHelpRequest); 309 m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));310 309 uiCommon().setHelpKeyword(m_pButtonBox->button(QIDialogButtonBox::Help), "snapshots"); 311 310 -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleManager.cpp
r106061 r107133 47 47 #include "UICloudConsoleManager.h" 48 48 #include "UIMessageCenter.h" 49 #include "UIShortcutPool.h" 49 50 #include "UITranslationEventListener.h" 50 51 #include "QIToolBar.h" … … 1193 1194 button(ButtonType_Apply)->setShortcut(QString("Ctrl+Return")); 1194 1195 button(ButtonType_Close)->setShortcut(Qt::Key_Escape); 1196 button(ButtonType_Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents)); 1195 1197 button(ButtonType_Reset)->setToolTip(tr("Reset Changes (%1)").arg(button(ButtonType_Reset)->shortcut().toString())); 1196 1198 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 195 195 m_buttons[ButtonType_Help] = m_pButtonBox->button(QDialogButtonBox::Help); 196 196 197 /* Assign shortcuts: */198 button(ButtonType_Close)->setShortcut(Qt::Key_Escape);199 button(ButtonType_Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));200 201 197 /* Hide some of buttons initially: */ 202 198 button(ButtonType_Reset)->hide(); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r106467 r107133 831 831 pMainLayout->addWidget(m_pButtonBox); 832 832 833 connect(m_pButtonBox->button(Q IDialogButtonBox::Help), &QPushButton::pressed,833 connect(m_pButtonBox->button(QDialogButtonBox::Help), &QPushButton::pressed, 834 834 m_pButtonBox, &QIDialogButtonBox::sltHandleHelpRequest); 835 836 m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));837 835 838 836 connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVisoCreatorDialog::close); … … 840 838 841 839 842 uiCommon().setHelpKeyword(m_pButtonBox->button(Q IDialogButtonBox::Help), "create-optical-disk-image");840 uiCommon().setHelpKeyword(m_pButtonBox->button(QDialogButtonBox::Help), "create-optical-disk-image"); 843 841 844 842 sltRetranslateUI(); … … 856 854 } 857 855 if (m_pButtonBox && m_pButtonBox->button(QDialogButtonBox::Help)) 856 { 858 857 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 } 859 860 updateWindowTitle(); 860 861 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r106061 r107133 276 276 /* Configure button-box: */ 277 277 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));280 278 uiCommon().setHelpKeyword(m_pButtonBox->button(QDialogButtonBox::Help), "vm-session-information"); 281 279 connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVMInformationDialog::sigClose); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp
r107078 r107133 205 205 pButtonHelp->setText(tr("&Help")); 206 206 pButtonHelp->setToolTip(tr("Open corresponding Help topic.")); 207 pButtonHelp->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents)); 207 208 } 208 209 … … 549 550 connect(wizardButton(WizardButtonType_Help), &QPushButton::clicked, 550 551 this, &UINativeWizard::sltHandleHelpRequest); 551 wizardButton(WizardButtonType_Help)->setShortcut(UIShortcutPool::standardSequence(QKeySequence::HelpContents));552 552 uiCommon().setHelpKeyword(this, m_strHelpKeyword); 553 553 }
Note:
See TracChangeset
for help on using the changeset viewer.