Changeset 56107 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
- Timestamp:
- May 27, 2015 4:11:10 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100632
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r55719 r56107 493 493 /* Screen stuff: */ 494 494 CSystemProperties sys = vboxGlobal().virtualBox().GetSystemProperties(); 495 m_pLabelVideoMemorySizeMin->setText(tr("<qt>%1 MB</qt>").arg(m_iMinVRAM)); 496 m_pLabelVideoMemorySizeMax->setText(tr("<qt>%1 MB</qt>").arg(m_iMaxVRAMVisible)); 497 m_pLabelVideoScreenCountMin->setText(tr("<qt>%1</qt>").arg(1)); 498 m_pLabelVideoScreenCountMax->setText(tr("<qt>%1</qt>").arg(qMin(sys.GetMaxGuestMonitors(), (ULONG)8))); 495 m_pEditorVideoMemorySize->setSuffix(QString(" %1").arg(tr("MB"))); 496 m_pLabelVideoMemorySizeMin->setText(tr("%1 MB").arg(m_iMinVRAM)); 497 m_pLabelVideoMemorySizeMax->setText(tr("%1 MB").arg(m_iMaxVRAMVisible)); 498 m_pLabelVideoScreenCountMin->setText(QString::number(1)); 499 m_pLabelVideoScreenCountMax->setText(QString::number(qMin(sys.GetMaxGuestMonitors(), (ULONG)8))); 500 m_pLabelGuestScreenScaleMin->setText(tr("%1%").arg(100)); 501 m_pLabelGuestScreenScaleMax->setText(tr("%1%").arg(200)); 499 502 500 503 /* Remote Display stuff: */ … … 504 507 505 508 /* Video Capture stuff: */ 509 m_pEditorVideoCaptureFrameRate->setSuffix(QString(" %1").arg(tr("fps"))); 510 m_pEditorVideoCaptureBitRate->setSuffix(QString(" %1").arg(tr("kbps"))); 506 511 m_pComboVideoCaptureSize->setItemText(0, tr("User Defined")); 507 512 m_pLabelVideoCaptureFrameRateMin->setText(tr("%1 fps").arg(m_pSliderVideoCaptureFrameRate->minimum())); 508 513 m_pLabelVideoCaptureFrameRateMax->setText(tr("%1 fps").arg(m_pSliderVideoCaptureFrameRate->maximum())); 509 m_pLabelVideoCaptureFrameRateUnits->setText(tr("fps"));510 514 m_pLabelVideoCaptureQualityMin->setText(tr("low", "quality")); 511 515 m_pLabelVideoCaptureQualityMed->setText(tr("medium", "quality")); 512 516 m_pLabelVideoCaptureQualityMax->setText(tr("high", "quality")); 513 m_pLabelVideoCaptureBitRateUnits->setText(tr("kbps"));514 517 515 518 updateVideoCaptureSizeHint(); … … 527 530 m_pLabelVideoMemorySizeMax->setEnabled(isMachineOffline()); 528 531 m_pEditorVideoMemorySize->setEnabled(isMachineOffline()); 529 m_pLabelVideoMemoryUnit->setEnabled(isMachineOffline());530 532 m_pLabelVideoScreenCount->setEnabled(isMachineOffline()); 531 533 m_pSliderVideoScreenCount->setEnabled(isMachineOffline()); … … 660 662 m_pContainerSliderVideoCaptureFrameRate->setEnabled(fIsVideoCaptureOptionsEnabled); 661 663 m_pEditorVideoCaptureFrameRate->setEnabled(fIsVideoCaptureOptionsEnabled); 662 m_pLabelVideoCaptureFrameRateUnits->setEnabled(fIsVideoCaptureOptionsEnabled);663 664 664 665 m_pLabelVideoCaptureRate->setEnabled(fIsVideoCaptureOptionsEnabled); 665 666 m_pContainerSliderVideoCaptureQuality->setEnabled(fIsVideoCaptureOptionsEnabled); 666 667 m_pEditorVideoCaptureBitRate->setEnabled(fIsVideoCaptureOptionsEnabled); 667 m_pLabelVideoCaptureBitRateUnits->setEnabled(fIsVideoCaptureOptionsEnabled);668 668 669 669 m_pLabelVideoCaptureScreens->setEnabled(fIsVideoCaptureScreenOptionEnabled); … … 977 977 m_pSliderVideoMemorySize->setWarningHint(1, qMin((int)uNeedMBytes, m_iMaxVRAMVisible)); 978 978 m_pSliderVideoMemorySize->setOptimalHint(qMin((int)uNeedMBytes, m_iMaxVRAMVisible), m_iMaxVRAMVisible); 979 m_pLabelVideoMemorySizeMax->setText(tr(" <qt>%1 MB</qt>").arg(m_iMaxVRAMVisible));979 m_pLabelVideoMemorySizeMax->setText(tr("%1 MB").arg(m_iMaxVRAMVisible)); 980 980 } 981 981
Note:
See TracChangeset
for help on using the changeset viewer.