- Timestamp:
- Nov 9, 2018 7:32:28 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIScaleFactorEditor.cpp
r75080 r75340 90 90 m_dDefaultScaleFactor = scaleFactors.at(0); 91 91 m_scaleFactors.append(m_dDefaultScaleFactor); 92 isGlobalScaleFactor(true);92 setIsGlobalScaleFactor(true); 93 93 return; 94 94 } … … 97 97 m_scaleFactors.append(m_dDefaultScaleFactor); 98 98 m_scaleFactors.append(scaleFactors); 99 isGlobalScaleFactor(false);99 setIsGlobalScaleFactor(false); 100 100 } 101 101 … … 135 135 } 136 136 137 void UIScaleFactorEditor:: isGlobalScaleFactor(bool bFlag)137 void UIScaleFactorEditor::setIsGlobalScaleFactor(bool bFlag) 138 138 { 139 139 if (!m_pMonitorComboBox) -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIScaleFactorEditor.h
r75080 r75340 18 18 #ifndef ___UIScaleFactorEditor_h___ 19 19 #define ___UIScaleFactorEditor_h___ 20 21 /* Qt includes: */22 //# include <QWidget>23 20 24 21 /* GUI includes: */ … … 49 46 /* Returns either a single global scale factor or a list of scale factor for each monitor. */ 50 47 QList<double> scaleFactors() const; 51 52 void isGlobalScaleFactor(bool bFlag);53 48 void setDefaultScaleFactor(double dDefaultScaleFactor); 54 55 49 /** Defines minimum width @a iHint for internal spin-box. */ 56 50 void setSpinBoxWidthHint(int iHint); … … 69 63 70 64 void prepare(); 65 void setIsGlobalScaleFactor(bool bFlag); 71 66 void setScaleFactor(int iMonitorIndex, int iScaleFactor); 72 67 /* Blocks slider's signals before settting the value. */ … … 74 69 /* Blocks slider's signals before settting the value. */ 75 70 void setSpinBoxValue(int iValue); 76 /* Set the spinbox and slider to scale factor of currently selected monitor */71 /* Set the spinbox and slider to scale factor of currently selected monitor. */ 77 72 void updateValuesAfterMonitorChange(); 78 73 QSpinBox *m_pScaleSpinBox; … … 82 77 QLabel *m_pMaxScaleLabel; 83 78 QLabel *m_pMinScaleLabel; 84 /* Stores the per-monitor scale factors. The 0th item is for all monitors (global) */79 /* Stores the per-monitor scale factors. The 0th item is for all monitors (global). */ 85 80 QList<double> m_scaleFactors; 86 81 double m_dDefaultScaleFactor;
Note:
See TracChangeset
for help on using the changeset viewer.