VirtualBox

Changeset 52234 in vbox


Ignore:
Timestamp:
Jul 30, 2014 8:27:30 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95307
Message:

FE/Qt: 6219: Information label has been added to Machine Settings -> Display -> Video Capture to inform user about approximate video file size with the current settings

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  
    486486    m_pLabelVideoCaptureQualityMax->setText(tr("high", "quality"));
    487487    m_pLabelVideoCaptureBitRateUnits->setText(tr("kbps"));
     488
     489    updateVideoCaptureSizeHint();
    488490}
    489491
     
    598600
    599601    m_pLabelVideoCaptureScreens->setEnabled(fIsVideoCaptureScreenOptionEnabled);
     602    m_pLabelVideoCaptureSizeHint->setEnabled(fIsVideoCaptureScreenOptionEnabled);
    600603    m_pScrollerVideoCaptureScreens->setEnabled(fIsVideoCaptureScreenOptionEnabled);
    601604}
     
    661664                                                            m_pSliderVideoCaptureQuality->value()));
    662665    m_pEditorVideoCaptureBitRate->blockSignals(false);
     666    updateVideoCaptureSizeHint();
    663667}
    664668
     
    672676                                                            m_pEditorVideoCaptureBitRate->value()));
    673677    m_pSliderVideoCaptureQuality->blockSignals(false);
     678    updateVideoCaptureSizeHint();
    674679}
    675680
     
    941946}
    942947
     948void 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
    943953/* static */
    944954void UIMachineSettingsDisplay::lookForCorrespondingPreset(QComboBox *pWhere, const QVariant &whichData)
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h

    r47944 r52234  
    192192    void lookForCorrespondingSizePreset();
    193193    void updateVideoCaptureScreenCount();
     194    void updateVideoCaptureSizeHint();
    194195    static void lookForCorrespondingPreset(QComboBox *pWhere, const QVariant &whichData);
    195196    static int calculateBitRate(int iFrameWidth, int iFrameHeight, int iFrameRate, int iQuality);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.ui

    r48592 r52234  
    601601              <widget class="QLabel" name="m_pLabelVideoCaptureBitRateUnits"/>
    602602             </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">
    604607              <widget class="QLabel" name="m_pLabelVideoCaptureScreens">
    605608               <property name="text">
     
    614617              </widget>
    615618             </item>
    616              <item row="6" column="1" colspan="3">
     619             <item row="7" column="1" colspan="3">
    617620              <widget class="UIFilmContainer" name="m_pScrollerVideoCaptureScreens">
    618621               <property name="whatsThis">
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