VirtualBox

Changeset 103315 in vbox


Ignore:
Timestamp:
Feb 12, 2024 3:23:30 PM (12 months ago)
Author:
vboxsync
Message:

FE/Qt: Machine settings / Display page / Recording tab and corresponding editors: Wiping out unwanted dependencies.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIRecordingSettingsEditor.cpp

    r101563 r103315  
    274274}
    275275
    276 void UIRecordingSettingsEditor::setScreens(const QVector<BOOL> &screens)
     276void UIRecordingSettingsEditor::setScreens(const QVector<bool> &screens)
    277277{
    278278    /* Update cached value and
     
    286286}
    287287
    288 QVector<BOOL> UIRecordingSettingsEditor::screens() const
     288QVector<bool> UIRecordingSettingsEditor::screens() const
    289289{
    290290    return m_pScrollerScreens ? m_pScrollerScreens->value() : m_screens;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIRecordingSettingsEditor.h

    r101011 r103315  
    3535#include "UIEditor.h"
    3636#include "UISettingsDefs.h"
    37 
    38 /* COM includes: */
    39 #include "COMEnums.h"
    4037
    4138/* Forward declarations: */
     
    108105
    109106    /** Defines enabled @a screens. */
    110     void setScreens(const QVector<BOOL> &screens);
     107    void setScreens(const QVector<bool> &screens);
    111108    /** Returns enabled screens. */
    112     QVector<BOOL> screens() const;
     109    QVector<bool> screens() const;
    113110
    114111protected:
     
    198195
    199196        /** Holds the screens. */
    200         QVector<BOOL>  m_screens;
     197        QVector<bool>  m_screens;
    201198    /** @} */
    202199
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r103161 r103315  
    288288    int m_iRecordingVideoBitRate;
    289289    /** Holds which of the guest screens should be recorded. */
    290     QVector<BOOL> m_vecRecordingScreens;
     290    QVector<bool> m_vecRecordingScreens;
    291291    /** Holds the video recording options. */
    292292    QString m_strRecordingVideoOptions;
     
    10481048{
    10491049    /* Update copy of the cached item to get the desired result: */
    1050     QVector<BOOL> screens = m_pCache->base().m_vecRecordingScreens;
     1050    QVector<bool> screens = m_pCache->base().m_vecRecordingScreens;
    10511051    screens.resize(m_pEditorMonitorCount->value());
    10521052    m_pEditorRecordingSettings->setScreens(screens);
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.cpp

    r98103 r103315  
    3131#include <QPainter>
    3232#include <QScrollArea>
    33 #include <QScrollBar>
    34 #include <QStyle>
    3533#include <QVBoxLayout>
     34#ifndef VBOX_WS_MAC
     35# include <QStyle>
     36#endif
    3637
    3738/* GUI includes: */
     39#include "QIWithRetranslateUI.h"
    3840#include "UIFilmContainer.h"
    3941
     
    5052      * @param  iScreenIndex  Brings the guest-screen index this film referencing.
    5153      * @param  fEnabled      Brings whether the guest-screen mentioned above is enabled. */
    52     UIFilm(int iScreenIndex, BOOL fEnabled, QWidget *pParent = 0);
     54    UIFilm(int iScreenIndex, bool fEnabled, QWidget *pParent = 0);
    5355
    5456    /** Returns whether guest-screen is enabled. */
     
    7880    int  m_iScreenIndex;
    7981    /** Holds whether guest-screen was enabled. */
    80     BOOL m_fWasEnabled;
     82    bool m_fWasEnabled;
    8183
    8284    /** Holds the main-layout instance. */
     
    9193*********************************************************************************************************************************/
    9294
    93 UIFilm::UIFilm(int iScreenIndex, BOOL fEnabled, QWidget *pParent /* = 0*/)
     95UIFilm::UIFilm(int iScreenIndex, bool fEnabled, QWidget *pParent /* = 0*/)
    9496    : QIWithRetranslateUI<QWidget>(pParent)
    9597    , m_iScreenIndex(iScreenIndex)
     
    225227}
    226228
    227 QVector<BOOL> UIFilmContainer::value() const
     229QVector<bool> UIFilmContainer::value() const
    228230{
    229231    /* Enumerate all the existing widgets: */
    230     QVector<BOOL> value;
     232    QVector<bool> value;
    231233    foreach (UIFilm *pWidget, m_widgets)
    232         value << static_cast<BOOL>(pWidget->checked());
     234        value << static_cast<bool>(pWidget->checked());
    233235
    234236    /* Return value: */
     
    236238}
    237239
    238 void UIFilmContainer::setValue(const QVector<BOOL> &value)
     240void UIFilmContainer::setValue(const QVector<bool> &value)
    239241{
    240242    /* Cleanup viewport/widget list: */
     
    293295
    294296    /* Append with 'default' value: */
    295     setValue(QVector<BOOL>() << true);
     297    setValue(QVector<bool>() << true);
    296298}
    297299
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.h

    r98103 r103315  
    3636
    3737/* GUI includes: */
    38 #include "QIWithRetranslateUI.h"
    3938#include "UILibraryDefs.h"
    4039
    41 /* Other VBox includes: */
    42 #include <VBox/com/com.h>
    43 
    4440/* Forward declarations: */
    45 class QCheckBox;
    4641class QScrollArea;
    4742class QVBoxLayout;
     
    6055
    6156    /** Returns the film-container check-box values. */
    62     QVector<BOOL> value() const;
     57    QVector<bool> value() const;
    6358    /** Defines the film-container check-box @a values. */
    64     void setValue(const QVector<BOOL> &values);
     59    void setValue(const QVector<bool> &values);
    6560
    6661private:
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