Changeset 52234 in vbox
- Timestamp:
- Jul 30, 2014 8:27:30 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95307
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r50043 r52234 486 486 m_pLabelVideoCaptureQualityMax->setText(tr("high", "quality")); 487 487 m_pLabelVideoCaptureBitRateUnits->setText(tr("kbps")); 488 489 updateVideoCaptureSizeHint(); 488 490 } 489 491 … … 598 600 599 601 m_pLabelVideoCaptureScreens->setEnabled(fIsVideoCaptureScreenOptionEnabled); 602 m_pLabelVideoCaptureSizeHint->setEnabled(fIsVideoCaptureScreenOptionEnabled); 600 603 m_pScrollerVideoCaptureScreens->setEnabled(fIsVideoCaptureScreenOptionEnabled); 601 604 } … … 661 664 m_pSliderVideoCaptureQuality->value())); 662 665 m_pEditorVideoCaptureBitRate->blockSignals(false); 666 updateVideoCaptureSizeHint(); 663 667 } 664 668 … … 672 676 m_pEditorVideoCaptureBitRate->value())); 673 677 m_pSliderVideoCaptureQuality->blockSignals(false); 678 updateVideoCaptureSizeHint(); 674 679 } 675 680 … … 941 946 } 942 947 948 void UIMachineSettingsDisplay::updateVideoCaptureSizeHint() 949 { 950 m_pLabelVideoCaptureSizeHint->setText(tr("<i>About %1MB per 5 minute video</i>").arg(m_pEditorVideoCaptureBitRate->value() * 300 / 8 / 1024)); 951 } 952 943 953 /* static */ 944 954 void UIMachineSettingsDisplay::lookForCorrespondingPreset(QComboBox *pWhere, const QVariant &whichData) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r47944 r52234 192 192 void lookForCorrespondingSizePreset(); 193 193 void updateVideoCaptureScreenCount(); 194 void updateVideoCaptureSizeHint(); 194 195 static void lookForCorrespondingPreset(QComboBox *pWhere, const QVariant &whichData); 195 196 static int calculateBitRate(int iFrameWidth, int iFrameHeight, int iFrameRate, int iQuality); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.ui
r48592 r52234 601 601 <widget class="QLabel" name="m_pLabelVideoCaptureBitRateUnits"/> 602 602 </item> 603 <item row="6" column="0"> 603 <item row="6" column="1"> 604 <widget class="QLabel" name="m_pLabelVideoCaptureSizeHint"/> 605 </item> 606 <item row="7" column="0"> 604 607 <widget class="QLabel" name="m_pLabelVideoCaptureScreens"> 605 608 <property name="text"> … … 614 617 </widget> 615 618 </item> 616 <item row=" 6" column="1" colspan="3">619 <item row="7" column="1" colspan="3"> 617 620 <widget class="UIFilmContainer" name="m_pScrollerVideoCaptureScreens"> 618 621 <property name="whatsThis">
Note:
See TracChangeset
for help on using the changeset viewer.