VirtualBox

Changeset 107290 in vbox


Ignore:
Timestamp:
Dec 11, 2024 4:34:56 PM (5 weeks ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10814: UIYoolPaneGlobal: Renaming m_pPaneVMActivityOverview to m_pPaneActivities.

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  
    5858    , m_pPaneNetwork(0)
    5959    , m_pPaneCloud(0)
    60     , m_pPaneVMActivityOverview(0)
     60    , m_pPaneActivities(0)
    6161    , m_fActive(false)
    6262{
     
    221221            {
    222222                /* Create VM Activity Overview: */
    223                 m_pPaneVMActivityOverview = new UIVMActivityOverviewWidget(EmbedTo_Stack, m_pActionPool, false /* show toolbar */);
    224                 AssertPtrReturnVoid(m_pPaneVMActivityOverview);
    225                 {
    226 #ifndef VBOX_WS_MAC
    227                     const int iMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 4;
    228                     m_pPaneVMActivityOverview->setContentsMargins(iMargin, 0, iMargin, 0);
    229 #endif
    230 
    231                     /* Configure pane: */
    232                     m_pPaneVMActivityOverview->setProperty("ToolType", QVariant::fromValue(UIToolType_Activities));
    233                     connect(m_pPaneVMActivityOverview, &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,
    234234                            this, &UIToolPaneGlobal::sigSwitchToMachineActivityPane);
    235                     m_pPaneVMActivityOverview->setCloudMachineItems(m_cloudItems);
    236 
    237                     /* Add into layout: */
    238                     m_pLayout->addWidget(m_pPaneVMActivityOverview);
    239                     m_pLayout->setCurrentWidget(m_pPaneVMActivityOverview);
     235                    m_pPaneActivities->setCloudMachineItems(m_cloudItems);
     236
     237                    /* Add into layout: */
     238                    m_pLayout->addWidget(m_pPaneActivities);
     239                    m_pLayout->setCurrentWidget(m_pPaneActivities);
    240240                }
    241241
     
    270270            case UIToolType_Network:    m_pPaneNetwork = 0; break;
    271271            case UIToolType_Cloud:      m_pPaneCloud = 0; break;
    272             case UIToolType_Activities: m_pPaneVMActivityOverview = 0; break;
     272            case UIToolType_Activities: m_pPaneActivities = 0; break;
    273273            default: break;
    274274        }
     
    305305            break;
    306306        case UIToolType_Activities:
    307             pCurrentToolWidget = m_pPaneVMActivityOverview;
     307            pCurrentToolWidget = m_pPaneActivities;
    308308            break;
    309309        default:
     
    321321    if (isToolOpened(UIToolType_Activities))
    322322    {
    323         AssertPtrReturnVoid(m_pPaneVMActivityOverview);
    324         m_pPaneVMActivityOverview->setCloudMachineItems(m_cloudItems);
     323        AssertPtrReturnVoid(m_pPaneActivities);
     324        m_pPaneActivities->setCloudMachineItems(m_cloudItems);
    325325    }
    326326}
     
    349349{
    350350    /* Determine whether resource monitor is currently active tool: */
    351     if (m_pPaneVMActivityOverview)
    352         m_pPaneVMActivityOverview->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  
    123123    UICloudProfileManagerWidget  *m_pPaneCloud;
    124124    /** Holds the VM Activity Overview instance. */
    125     UIVMActivityOverviewWidget   *m_pPaneVMActivityOverview;
     125    UIVMActivityOverviewWidget   *m_pPaneActivities;
    126126
    127127    /** Holds whether this pane is active. */
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