VirtualBox

Changeset 103129 in vbox


Ignore:
Timestamp:
Jan 31, 2024 8:33:18 AM (10 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10501. Adding timer slot to cloud machine table item class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityOverviewWidget.cpp

    r103128 r103129  
    288288class UIActivityOverviewItemLocal : public UIActivityOverviewItem
    289289{
    290 
     290    Q_OBJECT;
    291291public:
    292292
     
    325325class UIActivityOverviewItemCloud : public UIActivityOverviewItem
    326326{
    327 
     327    Q_OBJECT;
    328328public:
    329329
     
    341341    virtual void updateMetricData() override;
    342342
     343private slots:
     344
     345    void sltTimeout();
     346
    343347private:
    344     QTimer m_pTimer;
     348    QTimer *m_pTimer;
    345349    CCloudMachine m_comCloudMachine;
    346350};
     
    946950    , m_comCloudMachine(comCloudMachine)
    947951{
    948     /*    m_pTimer = new QTimer(this);
     952    m_pTimer = new QTimer(this);
    949953    if (m_pTimer)
    950954    {
     
    953957    }
    954958    if (isRunning() && m_pTimer)
    955     m_pTimer->start();*/
     959    m_pTimer->start();
    956960}
    957961
     
    994998        return QString();
    995999    return gpConverter->toString(m_comCloudMachine.GetState());
     1000}
     1001
     1002void UIActivityOverviewItemCloud::sltTimeout()
     1003{
    9961004}
    9971005
     
    14311439    if (iIndex != -1 && iIndex < m_itemList.size())
    14321440    {
    1433         UIActivityOverviewItemLocal *pItem = dynamic_cast<UIActivityOverviewItemLocal*>(m_itemList[iIndex]);
     1441        UIActivityOverviewItemLocal *pItem = qobject_cast<UIActivityOverviewItemLocal*>(m_itemList[iIndex]);
    14341442        if (pItem)
    14351443        {
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