VirtualBox

Changeset 56166 in vbox


Ignore:
Timestamp:
May 30, 2015 11:58:40 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100698
Message:

FE/Qt: Selector UI: Snapshot widget tool-bar: Use action status-tips (instead of names) for tool-tips.

File:
1 edited

Legend:

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

    r56163 r56166  
    483483void VBoxSnapshotsWgt::retranslateUi()
    484484{
    485     /* Translate uic generated strings */
    486     Ui::VBoxSnapshotsWgt::retranslateUi (this);
    487 
    488     mRestoreSnapshotAction->setText (tr ("&Restore Snapshot"));
    489     mDeleteSnapshotAction->setText (tr ("&Delete Snapshot"));
    490     mShowSnapshotDetailsAction->setText (tr ("S&how Details"));
    491     mTakeSnapshotAction->setText (tr ("Take &Snapshot"));
     485    /* Translate uic generated strings: */
     486    Ui::VBoxSnapshotsWgt::retranslateUi(this);
     487
     488    mRestoreSnapshotAction->setText(tr("&Restore Snapshot"));
     489    mDeleteSnapshotAction->setText(tr("&Delete Snapshot"));
     490    mShowSnapshotDetailsAction->setText(tr("S&how Details"));
     491    mTakeSnapshotAction->setText(tr("Take &Snapshot"));
    492492    mCloneSnapshotAction->setText(tr("&Clone..."));
    493493
    494     mRestoreSnapshotAction->setStatusTip (tr ("Restore selected snapshot of the virtual machine"));
    495     mDeleteSnapshotAction->setStatusTip (tr ("Delete selected snapshot of the virtual machine"));
    496     mShowSnapshotDetailsAction->setStatusTip (tr ("Show the details of selected snapshot"));
    497     mTakeSnapshotAction->setStatusTip (tr ("Take a snapshot of the current virtual machine state"));
     494    mRestoreSnapshotAction->setStatusTip(tr("Restore selected snapshot of the virtual machine"));
     495    mDeleteSnapshotAction->setStatusTip(tr("Delete selected snapshot of the virtual machine"));
     496    mShowSnapshotDetailsAction->setStatusTip(tr("Show the details of selected snapshot"));
     497    mTakeSnapshotAction->setStatusTip(tr("Take a snapshot of the current virtual machine state"));
    498498    mCloneSnapshotAction->setStatusTip(tr("Clone selected virtual machine"));
    499499
    500     mRestoreSnapshotAction->setToolTip (mRestoreSnapshotAction->text().remove ('&').remove ('.') +
    501         QString (" (%1)").arg (mRestoreSnapshotAction->shortcut().toString()));
    502     mDeleteSnapshotAction->setToolTip (mDeleteSnapshotAction->text().remove ('&').remove ('.') +
    503         QString (" (%1)").arg (mDeleteSnapshotAction->shortcut().toString()));
    504     mShowSnapshotDetailsAction->setToolTip (mShowSnapshotDetailsAction->text().remove ('&').remove ('.') +
    505         QString (" (%1)").arg (mShowSnapshotDetailsAction->shortcut().toString()));
    506     mTakeSnapshotAction->setToolTip (mTakeSnapshotAction->text().remove ('&').remove ('.') +
    507         QString (" (%1)").arg (mTakeSnapshotAction->shortcut().toString()));
    508     mCloneSnapshotAction->setToolTip(mCloneSnapshotAction->text().remove('&').remove('.') +
     500    mRestoreSnapshotAction->setToolTip(mRestoreSnapshotAction->statusTip() +
     501        QString(" (%1)").arg(mRestoreSnapshotAction->shortcut().toString()));
     502    mDeleteSnapshotAction->setToolTip(mDeleteSnapshotAction->statusTip() +
     503        QString(" (%1)").arg(mDeleteSnapshotAction->shortcut().toString()));
     504    mShowSnapshotDetailsAction->setToolTip(mShowSnapshotDetailsAction->statusTip() +
     505        QString(" (%1)").arg(mShowSnapshotDetailsAction->shortcut().toString()));
     506    mTakeSnapshotAction->setToolTip(mTakeSnapshotAction->statusTip() +
     507        QString(" (%1)").arg(mTakeSnapshotAction->shortcut().toString()));
     508    mCloneSnapshotAction->setToolTip(mCloneSnapshotAction->statusTip() +
    509509        QString(" (%1)").arg(mCloneSnapshotAction->shortcut().toString()));
    510510}
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