- Timestamp:
- Dec 5, 2014 3:47:11 PM (10 years ago)
- 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
r53401 r53465 143 143 /* Cache Machine Window data: */ 144 144 displayData.m_dScaleFactor = gEDataManager->scaleFactor(m_machine.GetId()); 145 #ifdef Q_WS_MAC 146 displayData.m_fUseUnscaledHiDPIOutput = gEDataManager->useUnscaledHiDPIOutput(m_machine.GetId()); 147 #endif /* Q_WS_MAC */ 145 148 displayData.m_fShowMiniToolBar = gEDataManager->miniToolbarEnabled(m_machine.GetId()); 146 149 displayData.m_fMiniToolBarAtTop = gEDataManager->miniToolbarAlignment(m_machine.GetId()) == Qt::AlignTop; … … 199 202 m_pMenuBarEditor->setActionPool(m_pActionPool); 200 203 m_pEditorGuestScreenScale->setValue(displayData.m_dScaleFactor * 100); 204 #ifdef Q_WS_MAC 205 m_pCheckBoxUnscaledHiDPIOutput->setChecked(displayData.m_fUseUnscaledHiDPIOutput); 206 #endif /* Q_WS_MAC */ 201 207 m_pCheckBoxShowMiniToolBar->setChecked(displayData.m_fShowMiniToolBar); 202 208 m_pComboToolBarAlignment->setChecked(displayData.m_fMiniToolBarAtTop); … … 246 252 /* Gather Machine Window data from page: */ 247 253 displayData.m_dScaleFactor = (double)m_pEditorGuestScreenScale->value() / 100; 254 #ifdef Q_WS_MAC 255 displayData.m_fUseUnscaledHiDPIOutput = m_pCheckBoxUnscaledHiDPIOutput->isChecked(); 256 #endif /* Q_WS_MAC */ 248 257 displayData.m_fShowMiniToolBar = m_pCheckBoxShowMiniToolBar->isChecked(); 249 258 displayData.m_fMiniToolBarAtTop = m_pComboToolBarAlignment->isChecked(); … … 335 344 { 336 345 gEDataManager->setScaleFactor(displayData.m_dScaleFactor, m_machine.GetId()); 346 #ifdef Q_WS_MAC 347 gEDataManager->setUseUnscaledHiDPIOutput(displayData.m_fUseUnscaledHiDPIOutput, m_machine.GetId()); 348 #endif /* Q_WS_MAC */ 337 349 gEDataManager->setMiniToolbarEnabled(displayData.m_fShowMiniToolBar, m_machine.GetId()); 338 350 gEDataManager->setMiniToolbarAlignment(displayData.m_fMiniToolBarAtTop ? Qt::AlignTop : Qt::AlignBottom, m_machine.GetId()); … … 503 515 setTabOrder(m_pEditorVideoCaptureBitRate, m_pSliderGuestScreenScale); 504 516 setTabOrder(m_pSliderGuestScreenScale, m_pEditorGuestScreenScale); 505 setTabOrder(m_pEditorGuestScreenScale, m_pCheckBoxShowMiniToolBar); 517 setTabOrder(m_pEditorGuestScreenScale, m_pCheckBoxUnscaledHiDPIOutput); 518 setTabOrder(m_pCheckBoxUnscaledHiDPIOutput, m_pCheckBoxShowMiniToolBar); 506 519 setTabOrder(m_pCheckBoxShowMiniToolBar, m_pComboToolBarAlignment); 507 520 } … … 560 573 561 574 /* Machine-window tab: */ 575 m_pMenuBarEditor->setEnabled(isMachineInValidMode()); 576 m_pLabelGuestScreenScale->setEnabled(isMachineInValidMode()); 577 m_pSliderGuestScreenScale->setEnabled(isMachineInValidMode()); 578 m_pLabelGuestScreenScaleMin->setEnabled(isMachineInValidMode()); 579 m_pLabelGuestScreenScaleMax->setEnabled(isMachineInValidMode()); 580 m_pEditorGuestScreenScale->setEnabled(isMachineInValidMode()); 581 #ifdef Q_WS_MAC 582 m_pLabelHiDPI->setEnabled(isMachineInValidMode()); 583 m_pCheckBoxUnscaledHiDPIOutput->setEnabled(isMachineInValidMode()); 584 #else /* !Q_WS_MAC */ 585 m_pLabelHiDPI->hide(); 586 m_pCheckBoxUnscaledHiDPIOutput->hide(); 587 #endif /* !Q_WS_MAC */ 562 588 m_pLabelMiniToolBar->setEnabled(isMachineInValidMode()); 563 589 m_pCheckBoxShowMiniToolBar->setEnabled(isMachineInValidMode()); 564 590 m_pComboToolBarAlignment->setEnabled(isMachineInValidMode() && m_pCheckBoxShowMiniToolBar->isChecked()); 591 m_pStatusBarEditor->setEnabled(isMachineInValidMode()); 565 592 } 566 593 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r53401 r53465 53 53 , m_iVideoCaptureBitRate(0) 54 54 , m_dScaleFactor(1) 55 #ifdef Q_WS_MAC 56 , m_fUseUnscaledHiDPIOutput(false) 57 #endif /* Q_WS_MAC */ 55 58 , m_fShowMiniToolBar(false) 56 59 , m_fMiniToolBarAtTop(false) … … 80 83 (m_screens == other.m_screens) && 81 84 (m_dScaleFactor == other.m_dScaleFactor) && 85 #ifdef Q_WS_MAC 86 (m_fUseUnscaledHiDPIOutput == other.m_fUseUnscaledHiDPIOutput) && 87 #endif /* Q_WS_MAC */ 82 88 (m_fShowMiniToolBar == other.m_fShowMiniToolBar) && 83 89 (m_fMiniToolBarAtTop == other.m_fMiniToolBarAtTop); … … 116 122 /* Variables: Machine Window stuff: */ 117 123 double m_dScaleFactor; 124 #ifdef Q_WS_MAC 125 bool m_fUseUnscaledHiDPIOutput; 126 #endif /* Q_WS_MAC */ 118 127 bool m_fShowMiniToolBar; 119 128 bool m_fMiniToolBarAtTop; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.ui
r53402 r53465 722 722 </item> 723 723 <item row="3" column="0"> 724 <widget class="QLabel" name="m_pLabelHiDPI"> 725 <property name="text"> 726 <string>HiDPI:</string> 727 </property> 728 <property name="alignment"> 729 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 730 </property> 731 </widget> 732 </item> 733 <item row="3" column="1" colspan="2"> 734 <widget class="QCheckBox" name="m_pCheckBoxUnscaledHiDPIOutput"> 735 <property name="sizePolicy"> 736 <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding"> 737 <horstretch>0</horstretch> 738 <verstretch>0</verstretch> 739 </sizepolicy> 740 </property> 741 <property name="whatsThis"> 742 <string>If checked, guest screen content will not be logically scaled on hosts with HiDPI screens.</string> 743 </property> 744 <property name="text"> 745 <string>Use &Unscaled HiDPI Output</string> 746 </property> 747 </widget> 748 </item> 749 <item row="4" column="0"> 724 750 <widget class="QLabel" name="m_pLabelMiniToolBar"> 725 751 <property name="text"> … … 731 757 </widget> 732 758 </item> 733 <item row=" 3" column="1" colspan="2">759 <item row="4" column="1" colspan="2"> 734 760 <widget class="QCheckBox" name="m_pCheckBoxShowMiniToolBar"> 735 761 <property name="sizePolicy"> … … 750 776 </widget> 751 777 </item> 752 <item row=" 4" column="1" colspan="2">778 <item row="5" column="1" colspan="2"> 753 779 <widget class="QCheckBox" name="m_pComboToolBarAlignment"> 754 780 <property name="sizePolicy"> … … 769 795 </widget> 770 796 </item> 771 <item row=" 5" column="0" colspan="3">797 <item row="6" column="0" colspan="3"> 772 798 <spacer name="m_pSpacer"> 773 799 <property name="orientation"> … … 782 808 </spacer> 783 809 </item> 784 <item row=" 6" column="0" colspan="3">810 <item row="7" column="0" colspan="3"> 785 811 <widget class="UIStatusBarEditorWidget" name="m_pStatusBarEditor"> 786 812 <property name="whatsThis">
Note:
See TracChangeset
for help on using the changeset viewer.