VirtualBox

Changeset 75340 in vbox for trunk


Ignore:
Timestamp:
Nov 9, 2018 7:32:28 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9254. Small fixes in the scale factor editor

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  
    9090        m_dDefaultScaleFactor = scaleFactors.at(0);
    9191        m_scaleFactors.append(m_dDefaultScaleFactor);
    92         isGlobalScaleFactor(true);
     92        setIsGlobalScaleFactor(true);
    9393        return;
    9494    }
     
    9797    m_scaleFactors.append(m_dDefaultScaleFactor);
    9898    m_scaleFactors.append(scaleFactors);
    99     isGlobalScaleFactor(false);
     99    setIsGlobalScaleFactor(false);
    100100}
    101101
     
    135135}
    136136
    137 void UIScaleFactorEditor::isGlobalScaleFactor(bool bFlag)
     137void UIScaleFactorEditor::setIsGlobalScaleFactor(bool bFlag)
    138138{
    139139    if (!m_pMonitorComboBox)
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIScaleFactorEditor.h

    r75080 r75340  
    1818#ifndef ___UIScaleFactorEditor_h___
    1919#define ___UIScaleFactorEditor_h___
    20 
    21 /* Qt includes: */
    22 //# include <QWidget>
    2320
    2421/* GUI includes: */
     
    4946    /* Returns either a single global scale factor or a list of scale factor for each monitor. */
    5047    QList<double>  scaleFactors() const;
    51 
    52     void           isGlobalScaleFactor(bool bFlag);
    5348    void           setDefaultScaleFactor(double dDefaultScaleFactor);
    54 
    5549    /** Defines minimum width @a iHint for internal spin-box. */
    5650    void           setSpinBoxWidthHint(int iHint);
     
    6963
    7064    void               prepare();
     65    void               setIsGlobalScaleFactor(bool bFlag);
    7166    void               setScaleFactor(int iMonitorIndex, int iScaleFactor);
    7267    /* Blocks slider's signals before settting the value. */
     
    7469    /* Blocks slider's signals before settting the value. */
    7570    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. */
    7772    void               updateValuesAfterMonitorChange();
    7873    QSpinBox          *m_pScaleSpinBox;
     
    8277    QLabel            *m_pMaxScaleLabel;
    8378    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). */
    8580    QList<double>      m_scaleFactors;
    8681    double             m_dDefaultScaleFactor;
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