VirtualBox

Ignore:
Timestamp:
Apr 6, 2017 11:56:30 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114440
Message:

FE/Qt: Settings: Syncing comments and minor pieces of code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r66435 r66460  
    273273    const UIDataSettingsMachineDisplay &oldDisplayData = m_pCache->base();
    274274
    275     /* Load old 'Screen' data to the page: */
     275    /* Load old 'Screen' data from the cache: */
    276276    m_pEditorVideoScreenCount->setValue(oldDisplayData.m_cGuestScreenCount);
    277277    m_pEditorGuestScreenScale->setValue((int)(oldDisplayData.m_dScaleFactor * 100));
     
    289289    if (oldDisplayData.m_fRemoteDisplayServerSupported)
    290290    {
    291         /* Load old 'Remote Display' data to the page: */
     291        /* Load old 'Remote Display' data from the cache: */
    292292        m_pCheckboxRemoteDisplay->setChecked(oldDisplayData.m_fRemoteDisplayServerEnabled);
    293293        m_pEditorRemoteDisplayPort->setText(oldDisplayData.m_strRemoteDisplayPort);
     
    297297    }
    298298
    299     /* Load old 'Video Capture' data to the page: */
     299    /* Load old 'Video Capture' data from the cache: */
    300300    m_pCheckboxVideoCapture->setChecked(oldDisplayData.m_fVideoCaptureEnabled);
    301301    m_pEditorVideoCapturePath->setHomeDir(oldDisplayData.m_strVideoCaptureFolder);
     
    319319    UIDataSettingsMachineDisplay newDisplayData;
    320320
    321     /* Gather new 'Screen' data from page: */
     321    /* Gather new 'Screen' data: */
    322322    newDisplayData.m_iCurrentVRAM = m_pEditorVideoMemorySize->value();
    323323    newDisplayData.m_cGuestScreenCount = m_pEditorVideoScreenCount->value();
     
    335335    if (newDisplayData.m_fRemoteDisplayServerSupported)
    336336    {
    337         /* Gather new 'Remote Display' data from page: */
     337        /* Gather new 'Remote Display' data: */
    338338        newDisplayData.m_fRemoteDisplayServerEnabled = m_pCheckboxRemoteDisplay->isChecked();
    339339        newDisplayData.m_strRemoteDisplayPort = m_pEditorRemoteDisplayPort->text();
     
    343343    }
    344344
    345     /* Gather new 'Video Capture' data from page: */
     345    /* Gather new 'Video Capture' data: */
    346346    newDisplayData.m_fVideoCaptureEnabled = m_pCheckboxVideoCapture->isChecked();
    347347    newDisplayData.m_strVideoCaptureFolder = m_pCache->base().m_strVideoCaptureFolder;
     
    681681void UIMachineSettingsDisplay::polishPage()
    682682{
    683     /* Get system data from the cache: */
    684     const UIDataSettingsMachineDisplay &displayData = m_pCache->base();
    685 
    686     /* Screen tab: */
     683    /* Get old display data from the cache: */
     684    const UIDataSettingsMachineDisplay &oldDisplayData = m_pCache->base();
     685
     686    /* Polish 'Screen' availability: */
    687687    m_pLabelVideoMemorySize->setEnabled(isMachineOffline());
    688688    m_pSliderVideoMemorySize->setEnabled(isMachineOffline());
     
    715715#endif /* !VBOX_WITH_VIDEOHWACCEL */
    716716
    717     /* Remote Display tab: */
    718     m_pTabWidget->setTabEnabled(1, displayData.m_fRemoteDisplayServerSupported);
     717    /* Polish 'Remote Display' availability: */
     718    m_pTabWidget->setTabEnabled(1, oldDisplayData.m_fRemoteDisplayServerSupported);
    719719    m_pContainerRemoteDisplay->setEnabled(isMachineInValidMode());
    720720    m_pContainerRemoteDisplayOptions->setEnabled(m_pCheckboxRemoteDisplay->isChecked());
     
    722722    m_pCheckboxMultipleConn->setEnabled(isMachineOffline() || isMachineSaved());
    723723
    724     /* Video Capture tab: */
     724    /* Polish 'Video Capture' availability: */
    725725    m_pContainerVideoCapture->setEnabled(isMachineInValidMode());
    726726    sltHandleVideoCaptureCheckboxToggle();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette