VirtualBox

Changeset 66730 in vbox


Ignore:
Timestamp:
Apr 29, 2017 10:59:10 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115134
Message:

FE/Qt: Selector UI: Snapshots pane: A bit of NLS and visual representation changes for tool-bar to unify look&feel with Virtual Media and Host Network managers.

File:
1 edited

Legend:

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

    r66662 r66730  
    562562
    563563    /* Determine icon metric: */
    564     const QStyle *pStyle = QApplication::style();
    565     const int iIconMetric = (int)(pStyle->pixelMetric(QStyle::PM_SmallIconSize) * 1.375);
     564    const int iIconMetric = (int)(QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) * 1.375);
    566565
    567566    /* Create tool-bar: */
    568567    UIToolBar *pToolBar = new UIToolBar(this);
    569568    pToolBar->setIconSize(QSize(iIconMetric, iIconMetric));
    570     pToolBar->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed);
     569    pToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
     570    pToolBar->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    571571    /* Add actions into tool-bar: */
    572572    pToolBar->addAction(m_pActionTakeSnapshot);
     
    669669
    670670    /* Translate actions names: */
    671     m_pActionTakeSnapshot->setText(tr("Take &Snapshot"));
    672     m_pActionRestoreSnapshot->setText(tr("&Restore Snapshot"));
    673     m_pActionDeleteSnapshot->setText(tr("&Delete Snapshot"));
    674     m_pActionShowSnapshotDetails->setText(tr("S&how Details"));
     671    m_pActionTakeSnapshot->setText(tr("&Take..."));
     672    m_pActionRestoreSnapshot->setText(tr("&Restore"));
     673    m_pActionDeleteSnapshot->setText(tr("&Delete"));
     674    m_pActionShowSnapshotDetails->setText(tr("D&etails..."));
    675675    m_pActionCloneSnapshot->setText(tr("&Clone..."));
     676    /* Translate actions tool-tips: */
     677    m_pActionTakeSnapshot->setToolTip(tr("Take Snapshot (%1)").arg(m_pActionTakeSnapshot->shortcut().toString()));
     678    m_pActionRestoreSnapshot->setToolTip(tr("Restore Snapshot (%1)").arg(m_pActionRestoreSnapshot->shortcut().toString()));
     679    m_pActionDeleteSnapshot->setToolTip(tr("Delete Snapshot (%1)").arg(m_pActionDeleteSnapshot->shortcut().toString()));
     680    m_pActionShowSnapshotDetails->setToolTip(tr("Show Snapshot Details (%1)").arg(m_pActionShowSnapshotDetails->shortcut().toString()));
     681    m_pActionCloneSnapshot->setToolTip(tr("Clone Virtual Machine (%1)").arg(m_pActionCloneSnapshot->shortcut().toString()));
    676682    /* Translate actions status-tips: */
    677683    m_pActionTakeSnapshot->setStatusTip(tr("Take a snapshot of the current virtual machine state"));
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