Changeset 86991 in vbox
- Timestamp:
- Nov 26, 2020 2:48:09 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 141537
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/UITakeSnapshotDialog.cpp
r86939 r86991 27 27 #include "QILabel.h" 28 28 #include "VBoxUtils.h" 29 #include "UICommon.h" 29 30 #include "UIDesktopWidgetWatchdog.h" 30 31 #include "UIMessageCenter.h" … … 101 102 "attached to it. As long as you are working from this snapshot the immutable image(s) " 102 103 "will not be reset to avoid loss of data.", "", m_cImmutableMedia)); 104 105 if (m_pButtonBox) 106 { 107 m_pButtonBox->button(QDialogButtonBox::Ok)->setText(tr("Ok")); 108 m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(tr("Cancel")); 109 m_pButtonBox->button(QDialogButtonBox::Help)->setText(tr("Help")); 110 111 m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Take Snapshot and close the dialog")); 112 m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Close dialog without taking a snapshot")); 113 m_pButtonBox->button(QDialogButtonBox::Help)->setStatusTip(tr("Show dialog help")); 114 115 m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(Qt::Key_F1); 116 117 m_pButtonBox->button(QDialogButtonBox::Ok)->setToolTip(tr("Accept (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString())); 118 m_pButtonBox->button(QDialogButtonBox::Cancel)->setToolTip(tr("Cancel (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString())); 119 m_pButtonBox->button(QDialogButtonBox::Help)->setToolTip(tr("Show Help (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Help)->shortcut().toString())); 120 } 103 121 } 104 122 … … 282 300 connect(m_pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed, 283 301 &(msgCenter()), &UIMessageCenter::sltHandleDialogHelpButtonPress); 284 m_pButtonBox->button(QIDialogButtonBox::Help)->setProperty("helptag", "snapshots"); 302 m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(Qt::Key_F1); 303 uiCommon().setHelpKeyword(m_pButtonBox->button(QIDialogButtonBox::Help), "snapshots"); 285 304 /* Add into layout: */ 286 305 pLayout->addWidget(m_pButtonBox, 3, 0, 1, 2); -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileDetailsWidget.cpp
r86986 r86991 27 27 /* GUI includes: */ 28 28 #include "QIDialogButtonBox.h" 29 #include "UICommon.h" 29 30 #include "UICloudProfileDetailsWidget.h" 30 31 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r86986 r86991 124 124 m_pButtonBox->button(QDialogButtonBox::Close)->setStatusTip(tr("Close dialog without saving")); 125 125 m_pButtonBox->button(QDialogButtonBox::Help)->setStatusTip(tr("Show dialog help")); 126 m_pButtonBox->button(QDialogButtonBox::Close)->setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Close)->shortcut().toString())); 127 m_pButtonBox->button(QDialogButtonBox::Help)->setToolTip(tr("Show Help (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Help)->shortcut().toString())); 128 126 129 m_pButtonBox->button(QDialogButtonBox::Close)->setShortcut(Qt::Key_Escape); 127 130 m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(Qt::Key_F1); 128 m_pButtonBox->button(QDialogButtonBox::Close)->setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Close)->shortcut().toString()));129 m_pButtonBox->button(QDialogButtonBox::Help)->setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Help)->shortcut().toString()));130 131 } 131 132 } … … 262 263 m_pButtonBox->setStandardButtons(QDialogButtonBox::Close | QDialogButtonBox::Help); 263 264 m_pButtonBox->button(QDialogButtonBox::Close)->setShortcut(Qt::Key_Escape); 265 m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(Qt::Key_F1); 264 266 uiCommon().setHelpKeyword(m_pButtonBox->button(QDialogButtonBox::Help), "guestadd-guestprops"); 265 267 connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVMInformationDialog::close);
Note:
See TracChangeset
for help on using the changeset viewer.