Changeset 59175 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Dec 17, 2015 12:35:04 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104777
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/UIVMInfoDialog.cpp
r59151 r59175 663 663 /* Deterine virtualization attributes: */ 664 664 CMachineDebugger debugger = console.GetDebugger(); 665 QString strVirtualization = debugger.GetHWVirtExEnabled() ?666 VBoxGlobal::tr("Active", "details report (VT-x/AMD-V)") :667 VBoxGlobal::tr("Inactive", "details report (VT-x/AMD-V)");668 QString strNestedPaging = debugger.GetHWVirtExNestedPagingEnabled() ?669 VBoxGlobal::tr("Active", "details report (Nested Paging)") :670 VBoxGlobal::tr("Inactive", "details report (Nested Paging)");671 QString strUnrestrictedExecution = debugger.GetHWVirtExUXEnabled() ?672 VBoxGlobal::tr("Active", "details report (Unrestricted Execution)") :673 VBoxGlobal::tr("Inactive", "details report (Unrestricted Execution)");674 QString strParavirtProvider = gpConverter->toString(m.GetEffectiveParavirtProvider());665 const QString strVirtualization = m_pMachineWindow->uisession()->isHWVirtExEnabled() ? 666 VBoxGlobal::tr("Active", "details report (VT-x/AMD-V)") : 667 VBoxGlobal::tr("Inactive", "details report (VT-x/AMD-V)"); 668 const QString strNestedPaging = debugger.GetHWVirtExNestedPagingEnabled() ? 669 VBoxGlobal::tr("Active", "details report (Nested Paging)") : 670 VBoxGlobal::tr("Inactive", "details report (Nested Paging)"); 671 const QString strUnrestrictedExecution = debugger.GetHWVirtExUXEnabled() ? 672 VBoxGlobal::tr("Active", "details report (Unrestricted Execution)") : 673 VBoxGlobal::tr("Inactive", "details report (Unrestricted Execution)"); 674 const QString strParavirtProvider = gpConverter->toString(m.GetEffectiveParavirtProvider()); 675 675 676 676 /* Guest information: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r56305 r59175 832 832 833 833 /* VT-x/AMD-V feature: */ 834 bool bVirtEnabled = debugger.GetHWVirtExEnabled(); 835 QString virtualization = bVirtEnabled ? 836 VBoxGlobal::tr("Active", "details report (VT-x/AMD-V)") : 837 VBoxGlobal::tr("Inactive", "details report (VT-x/AMD-V)"); 834 const QString strVirtualization = m_pSession->isHWVirtExEnabled() ? 835 VBoxGlobal::tr("Active", "details report (VT-x/AMD-V)") : 836 VBoxGlobal::tr("Inactive", "details report (VT-x/AMD-V)"); 838 837 839 838 /* Nested Paging feature: */ 840 839 bool bNestEnabled = debugger.GetHWVirtExNestedPagingEnabled(); 841 QString nestedPaging = bNestEnabled ?842 VBoxGlobal::tr("Active", "details report (Nested Paging)") :843 VBoxGlobal::tr("Inactive", "details report (Nested Paging)");840 const QString strNestedPaging = bNestEnabled ? 841 VBoxGlobal::tr("Active", "details report (Nested Paging)") : 842 VBoxGlobal::tr("Inactive", "details report (Nested Paging)"); 844 843 845 844 /* Unrestricted Execution feature: */ 846 845 bool bUXEnabled = debugger.GetHWVirtExUXEnabled(); 847 QString unrestrictExec = bUXEnabled ?848 VBoxGlobal::tr("Active", "details report (Unrestricted Execution)") :849 VBoxGlobal::tr("Inactive", "details report (Unrestricted Execution)");846 const QString strUnrestrictExec = bUXEnabled ? 847 VBoxGlobal::tr("Active", "details report (Unrestricted Execution)") : 848 VBoxGlobal::tr("Inactive", "details report (Unrestricted Execution)"); 850 849 851 850 /* CPU Execution Cap feature: */ … … 863 862 "<br><nobr><b>%7:</b> %8%</nobr>", 864 863 "Virtualization Stuff LED") 865 .arg(VBoxGlobal::tr("VT-x/AMD-V", "details report"), virtualization)866 .arg(VBoxGlobal::tr("Nested Paging"), nestedPaging)867 .arg(VBoxGlobal::tr("Unrestricted Execution"), unrestrictExec)864 .arg(VBoxGlobal::tr("VT-x/AMD-V", "details report"), strVirtualization) 865 .arg(VBoxGlobal::tr("Nested Paging"), strNestedPaging) 866 .arg(VBoxGlobal::tr("Unrestricted Execution"), strUnrestrictExec) 868 867 .arg(VBoxGlobal::tr("Execution Cap", "details report"), strCPUExecCap)); 869 868 … … 883 882 setToolTip(tip); 884 883 /* Update indicator state: */ 885 setState( bVirtEnabled);884 setState(m_pSession->isHWVirtExEnabled()); 886 885 } 887 886 };
Note:
See TracChangeset
for help on using the changeset viewer.