Changeset 103315 in vbox
- Timestamp:
- Feb 12, 2024 3:23:30 PM (12 months ago)
- 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 274 274 } 275 275 276 void UIRecordingSettingsEditor::setScreens(const QVector< BOOL> &screens)276 void UIRecordingSettingsEditor::setScreens(const QVector<bool> &screens) 277 277 { 278 278 /* Update cached value and … … 286 286 } 287 287 288 QVector< BOOL> UIRecordingSettingsEditor::screens() const288 QVector<bool> UIRecordingSettingsEditor::screens() const 289 289 { 290 290 return m_pScrollerScreens ? m_pScrollerScreens->value() : m_screens; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIRecordingSettingsEditor.h
r101011 r103315 35 35 #include "UIEditor.h" 36 36 #include "UISettingsDefs.h" 37 38 /* COM includes: */39 #include "COMEnums.h"40 37 41 38 /* Forward declarations: */ … … 108 105 109 106 /** Defines enabled @a screens. */ 110 void setScreens(const QVector< BOOL> &screens);107 void setScreens(const QVector<bool> &screens); 111 108 /** Returns enabled screens. */ 112 QVector< BOOL> screens() const;109 QVector<bool> screens() const; 113 110 114 111 protected: … … 198 195 199 196 /** Holds the screens. */ 200 QVector< BOOL> m_screens;197 QVector<bool> m_screens; 201 198 /** @} */ 202 199 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r103161 r103315 288 288 int m_iRecordingVideoBitRate; 289 289 /** Holds which of the guest screens should be recorded. */ 290 QVector< BOOL> m_vecRecordingScreens;290 QVector<bool> m_vecRecordingScreens; 291 291 /** Holds the video recording options. */ 292 292 QString m_strRecordingVideoOptions; … … 1048 1048 { 1049 1049 /* 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; 1051 1051 screens.resize(m_pEditorMonitorCount->value()); 1052 1052 m_pEditorRecordingSettings->setScreens(screens); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.cpp
r98103 r103315 31 31 #include <QPainter> 32 32 #include <QScrollArea> 33 #include <QScrollBar>34 #include <QStyle>35 33 #include <QVBoxLayout> 34 #ifndef VBOX_WS_MAC 35 # include <QStyle> 36 #endif 36 37 37 38 /* GUI includes: */ 39 #include "QIWithRetranslateUI.h" 38 40 #include "UIFilmContainer.h" 39 41 … … 50 52 * @param iScreenIndex Brings the guest-screen index this film referencing. 51 53 * @param fEnabled Brings whether the guest-screen mentioned above is enabled. */ 52 UIFilm(int iScreenIndex, BOOLfEnabled, QWidget *pParent = 0);54 UIFilm(int iScreenIndex, bool fEnabled, QWidget *pParent = 0); 53 55 54 56 /** Returns whether guest-screen is enabled. */ … … 78 80 int m_iScreenIndex; 79 81 /** Holds whether guest-screen was enabled. */ 80 BOOLm_fWasEnabled;82 bool m_fWasEnabled; 81 83 82 84 /** Holds the main-layout instance. */ … … 91 93 *********************************************************************************************************************************/ 92 94 93 UIFilm::UIFilm(int iScreenIndex, BOOLfEnabled, QWidget *pParent /* = 0*/)95 UIFilm::UIFilm(int iScreenIndex, bool fEnabled, QWidget *pParent /* = 0*/) 94 96 : QIWithRetranslateUI<QWidget>(pParent) 95 97 , m_iScreenIndex(iScreenIndex) … … 225 227 } 226 228 227 QVector< BOOL> UIFilmContainer::value() const229 QVector<bool> UIFilmContainer::value() const 228 230 { 229 231 /* Enumerate all the existing widgets: */ 230 QVector< BOOL> value;232 QVector<bool> value; 231 233 foreach (UIFilm *pWidget, m_widgets) 232 value << static_cast< BOOL>(pWidget->checked());234 value << static_cast<bool>(pWidget->checked()); 233 235 234 236 /* Return value: */ … … 236 238 } 237 239 238 void UIFilmContainer::setValue(const QVector< BOOL> &value)240 void UIFilmContainer::setValue(const QVector<bool> &value) 239 241 { 240 242 /* Cleanup viewport/widget list: */ … … 293 295 294 296 /* Append with 'default' value: */ 295 setValue(QVector< BOOL>() << true);297 setValue(QVector<bool>() << true); 296 298 } 297 299 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.h
r98103 r103315 36 36 37 37 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h"39 38 #include "UILibraryDefs.h" 40 39 41 /* Other VBox includes: */42 #include <VBox/com/com.h>43 44 40 /* Forward declarations: */ 45 class QCheckBox;46 41 class QScrollArea; 47 42 class QVBoxLayout; … … 60 55 61 56 /** Returns the film-container check-box values. */ 62 QVector< BOOL> value() const;57 QVector<bool> value() const; 63 58 /** Defines the film-container check-box @a values. */ 64 void setValue(const QVector< BOOL> &values);59 void setValue(const QVector<bool> &values); 65 60 66 61 private:
Note:
See TracChangeset
for help on using the changeset viewer.