VirtualBox

Changeset 27406 in vbox


Ignore:
Timestamp:
Mar 16, 2010 1:56:42 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58871
Message:

FE/Qt4: new core: disable 2D/3D when more then one monitor is selected

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsDisplay.cpp

    r26921 r27406  
    155155        mTwDisplay->setTabEnabled (1, false);
    156156    }
     157
     158    checkMultiMonitorReqs();
    157159}
    158160
     
    286288{
    287289    mLeMonitors->setText (QString().setNum (aVal));
     290    checkMultiMonitorReqs();
    288291}
    289292
     
    292295    mSlMonitors->setValue (aText.toInt());
    293296}
     297
     298void VBoxVMSettingsDisplay::checkMultiMonitorReqs()
     299{
     300    int cVal = mSlMonitors->value();
     301    if (cVal > 1)
     302    {
     303#ifdef VBOX_WITH_VIDEOHWACCEL
     304        mCb2DVideo->setChecked(false);
     305#endif /* VBOX_WITH_VIDEOHWACCEL */
     306        mCb3D->setChecked(false);
     307    }
     308#ifdef VBOX_WITH_VIDEOHWACCEL
     309    mCb2DVideo->setEnabled(cVal == 1 && VBoxGlobal::isAcceleration2DVideoAvailable());
     310#endif /* VBOX_WITH_VIDEOHWACCEL */
     311    mCb3D->setEnabled(cVal == 1 && vboxGlobal().virtualBox().GetHost().GetAcceleration3DAvailable());
     312}
     313
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsDisplay.h

    r26921 r27406  
    6262private:
    6363
     64    void checkMultiMonitorReqs();
     65
    6466    CMachine mMachine;
    6567    QIWidgetValidator *mValidator;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsDisplay.ui

    r26921 r27406  
    172172             <widget class="QIAdvancedSlider" name="mSlMonitors">
    173173              <property name="whatsThis">
    174                <string>Controls the amount of virtual monitors provided to the virtual machine.</string>
     174               <string>Controls the amount of virtual monitors provided to the virtual machine. Currently 2D and 3D acceleration isn't available when more then one monitor is selected.</string>
    175175              </property>
    176176              <property name="orientation">
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