Changeset 66730 in vbox
- Timestamp:
- Apr 29, 2017 10:59:10 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115134
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.cpp
r66662 r66730 562 562 563 563 /* 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); 566 565 567 566 /* Create tool-bar: */ 568 567 UIToolBar *pToolBar = new UIToolBar(this); 569 568 pToolBar->setIconSize(QSize(iIconMetric, iIconMetric)); 570 pToolBar->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed); 569 pToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 570 pToolBar->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 571 571 /* Add actions into tool-bar: */ 572 572 pToolBar->addAction(m_pActionTakeSnapshot); … … 669 669 670 670 /* 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...")); 675 675 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())); 676 682 /* Translate actions status-tips: */ 677 683 m_pActionTakeSnapshot->setStatusTip(tr("Take a snapshot of the current virtual machine state"));
Note:
See TracChangeset
for help on using the changeset viewer.