Changeset 107290 in vbox
- Timestamp:
- Dec 11, 2024 4:34:56 PM (5 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.cpp
r107289 r107290 58 58 , m_pPaneNetwork(0) 59 59 , m_pPaneCloud(0) 60 , m_pPane VMActivityOverview(0)60 , m_pPaneActivities(0) 61 61 , m_fActive(false) 62 62 { … … 221 221 { 222 222 /* Create VM Activity Overview: */ 223 m_pPane VMActivityOverview= new UIVMActivityOverviewWidget(EmbedTo_Stack, m_pActionPool, false /* show toolbar */);224 AssertPtrReturnVoid(m_pPane VMActivityOverview);225 { 226 #ifndef VBOX_WS_MAC 227 const int iMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 4; 228 m_pPane VMActivityOverview->setContentsMargins(iMargin, 0, iMargin, 0);229 #endif 230 231 /* Configure pane: */ 232 m_pPane VMActivityOverview->setProperty("ToolType", QVariant::fromValue(UIToolType_Activities));233 connect(m_pPane VMActivityOverview, &UIVMActivityOverviewWidget::sigSwitchToMachineActivityPane,223 m_pPaneActivities = new UIVMActivityOverviewWidget(EmbedTo_Stack, m_pActionPool, false /* show toolbar */); 224 AssertPtrReturnVoid(m_pPaneActivities); 225 { 226 #ifndef VBOX_WS_MAC 227 const int iMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 4; 228 m_pPaneActivities->setContentsMargins(iMargin, 0, iMargin, 0); 229 #endif 230 231 /* Configure pane: */ 232 m_pPaneActivities->setProperty("ToolType", QVariant::fromValue(UIToolType_Activities)); 233 connect(m_pPaneActivities, &UIVMActivityOverviewWidget::sigSwitchToMachineActivityPane, 234 234 this, &UIToolPaneGlobal::sigSwitchToMachineActivityPane); 235 m_pPane VMActivityOverview->setCloudMachineItems(m_cloudItems);236 237 /* Add into layout: */ 238 m_pLayout->addWidget(m_pPane VMActivityOverview);239 m_pLayout->setCurrentWidget(m_pPane VMActivityOverview);235 m_pPaneActivities->setCloudMachineItems(m_cloudItems); 236 237 /* Add into layout: */ 238 m_pLayout->addWidget(m_pPaneActivities); 239 m_pLayout->setCurrentWidget(m_pPaneActivities); 240 240 } 241 241 … … 270 270 case UIToolType_Network: m_pPaneNetwork = 0; break; 271 271 case UIToolType_Cloud: m_pPaneCloud = 0; break; 272 case UIToolType_Activities: m_pPane VMActivityOverview= 0; break;272 case UIToolType_Activities: m_pPaneActivities = 0; break; 273 273 default: break; 274 274 } … … 305 305 break; 306 306 case UIToolType_Activities: 307 pCurrentToolWidget = m_pPane VMActivityOverview;307 pCurrentToolWidget = m_pPaneActivities; 308 308 break; 309 309 default: … … 321 321 if (isToolOpened(UIToolType_Activities)) 322 322 { 323 AssertPtrReturnVoid(m_pPane VMActivityOverview);324 m_pPane VMActivityOverview->setCloudMachineItems(m_cloudItems);323 AssertPtrReturnVoid(m_pPaneActivities); 324 m_pPaneActivities->setCloudMachineItems(m_cloudItems); 325 325 } 326 326 } … … 349 349 { 350 350 /* Determine whether resource monitor is currently active tool: */ 351 if (m_pPane VMActivityOverview)352 m_pPane VMActivityOverview->setIsCurrentTool(m_fActive && currentTool() == UIToolType_Activities);353 } 351 if (m_pPaneActivities) 352 m_pPaneActivities->setIsCurrentTool(m_fActive && currentTool() == UIToolType_Activities); 353 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.h
r106061 r107290 123 123 UICloudProfileManagerWidget *m_pPaneCloud; 124 124 /** Holds the VM Activity Overview instance. */ 125 UIVMActivityOverviewWidget *m_pPane VMActivityOverview;125 UIVMActivityOverviewWidget *m_pPaneActivities; 126 126 127 127 /** Holds whether this pane is active. */
Note:
See TracChangeset
for help on using the changeset viewer.