Changeset 108202 in vbox
- Timestamp:
- Feb 13, 2025 4:12:22 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167520
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.cpp
r108201 r108202 129 129 130 130 /* Prepare view: */ 131 m_pToolsView = new UIToolsView(this );131 m_pToolsView = new UIToolsView(this, isPopup()); 132 132 if (m_pToolsView) 133 133 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsView.cpp
r108197 r108202 115 115 116 116 117 UIToolsView::UIToolsView(UITools *pParent )117 UIToolsView::UIToolsView(UITools *pParent, bool fPopup) 118 118 : QIGraphicsView(pParent) 119 119 , m_pTools(pParent) 120 , m_fPopup(fPopup) 120 121 , m_iMinimumWidthHint(0) 121 122 , m_iMinimumHeightHint(0) … … 168 169 169 170 /* No minimum size-hint for widget mode: */ 170 if (! tools()->isPopup())171 if (!isPopup()) 171 172 setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); 172 173 … … 202 203 QColor backgroundColorActive = pal.color(QPalette::Active, QPalette::Window); 203 204 QColor backgroundColorInactive = pal.color(QPalette::Inactive, QPalette::Window); 204 if (! tools()->isPopup())205 if (!isPopup()) 205 206 { 206 207 backgroundColorActive = uiCommon().isInDarkMode() … … 216 217 #else /* !VBOX_WS_MAC */ 217 218 218 if ( tools()->isPopup())219 if (isPopup()) 219 220 { 220 221 /* Same as on macOS for now, will go away soon: */ 221 222 QColor backgroundColorActive = pal.color(QPalette::Active, QPalette::Window); 222 223 QColor backgroundColorInactive = pal.color(QPalette::Inactive, QPalette::Window); 223 if (! tools()->isPopup())224 if (!isPopup()) 224 225 { 225 226 backgroundColorActive = uiCommon().isInDarkMode() -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsView.h
r108197 r108202 51 51 52 52 /** Constructs a Tools-view passing @a pParent to the base-class. 53 * @param pParent Brings the Tools-container to embed into. */ 54 UIToolsView(UITools *pParent); 53 * @param pParent Brings the Tools-container to embed into. 54 * @param fPopup Brings whether tools represented as popup. */ 55 UIToolsView(UITools *pParent, bool fPopup); 55 56 56 57 /** @name General stuff. … … 98 99 /** @name General stuff. 99 100 * @{ */ 101 /** Returns whether tools represented as popup. */ 102 bool isPopup() const { return m_fPopup; } 103 100 104 /** Updates scene rectangle. */ 101 105 void updateSceneRect(); … … 111 115 /** Holds the Tools-pane reference. */ 112 116 UITools *m_pTools; 117 118 /** Holds whether tools represented as popup. */ 119 const bool m_fPopup; 113 120 /** @} */ 114 121
Note:
See TracChangeset
for help on using the changeset viewer.