VirtualBox

Changeset 86991 in vbox


Ignore:
Timestamp:
Nov 26, 2020 2:48:09 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141537
Message:

FE/Qt: bugref:9831. Some more fixes

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

Legend:

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

    r86939 r86991  
    2727#include "QILabel.h"
    2828#include "VBoxUtils.h"
     29#include "UICommon.h"
    2930#include "UIDesktopWidgetWatchdog.h"
    3031#include "UIMessageCenter.h"
     
    101102                             "attached to it. As long as you are working from this snapshot the immutable image(s) "
    102103                             "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    }
    103121}
    104122
     
    282300            connect(m_pButtonBox->button(QIDialogButtonBox::Help), &QPushButton::pressed,
    283301                    &(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");
    285304            /* Add into layout: */
    286305            pLayout->addWidget(m_pButtonBox, 3, 0, 1, 2);
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileDetailsWidget.cpp

    r86986 r86991  
    2727/* GUI includes: */
    2828#include "QIDialogButtonBox.h"
     29#include "UICommon.h"
    2930#include "UICloudProfileDetailsWidget.h"
    3031
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp

    r86986 r86991  
    124124        m_pButtonBox->button(QDialogButtonBox::Close)->setStatusTip(tr("Close dialog without saving"));
    125125        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
    126129        m_pButtonBox->button(QDialogButtonBox::Close)->setShortcut(Qt::Key_Escape);
    127130        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()));
    130131    }
    131132}
     
    262263        m_pButtonBox->setStandardButtons(QDialogButtonBox::Close | QDialogButtonBox::Help);
    263264        m_pButtonBox->button(QDialogButtonBox::Close)->setShortcut(Qt::Key_Escape);
     265        m_pButtonBox->button(QDialogButtonBox::Help)->setShortcut(Qt::Key_F1);
    264266        uiCommon().setHelpKeyword(m_pButtonBox->button(QDialogButtonBox::Help), "guestadd-guestprops");
    265267        connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVMInformationDialog::close);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette