VirtualBox

Changeset 74897 in vbox for trunk


Ignore:
Timestamp:
Oct 18, 2018 12:17:39 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9230: A couple of fixes for Cloud Profile Manager details widget: Compare data when necessary; Translate button names, shortcuts, tooltips.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/cloud
Files:
2 edited

Legend:

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

    r74895 r74897  
    6363    m_pTableWidget->setToolTip(tr("Contains cloud profile settings"));
    6464
     65    /* Translate button-box: */
     66    m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(tr("Reset"));
     67    m_pButtonBox->button(QDialogButtonBox::Ok)->setText(tr("Apply"));
     68    m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape);
     69    m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return"));
     70    m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current profile details"));
     71    m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current profile details"));
     72    m_pButtonBox->button(QDialogButtonBox::Cancel)->
     73        setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString()));
     74    m_pButtonBox->button(QDialogButtonBox::Ok)->
     75        setToolTip(tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
     76
    6577    /* Retranslate validation: */
    6678    retranslateValidation();
     
    214226    Q_UNUSED(pWidget);
    215227
    216     /// @todo retranslate profile settings vaidation!
     228    /// @todo translate vaidation errors!
    217229}
    218230
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/UICloudProfileDetailsWidget.h

    r74893 r74897  
    7474        return true
    7575               && (m_strName == other.m_strName)
     76               && (m_data == other.m_data)
    7677               ;
    7778    }
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