Changeset 103129 in vbox
- Timestamp:
- Jan 31, 2024 8:33:18 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityOverviewWidget.cpp
r103128 r103129 288 288 class UIActivityOverviewItemLocal : public UIActivityOverviewItem 289 289 { 290 290 Q_OBJECT; 291 291 public: 292 292 … … 325 325 class UIActivityOverviewItemCloud : public UIActivityOverviewItem 326 326 { 327 327 Q_OBJECT; 328 328 public: 329 329 … … 341 341 virtual void updateMetricData() override; 342 342 343 private slots: 344 345 void sltTimeout(); 346 343 347 private: 344 QTimer m_pTimer;348 QTimer *m_pTimer; 345 349 CCloudMachine m_comCloudMachine; 346 350 }; … … 946 950 , m_comCloudMachine(comCloudMachine) 947 951 { 948 /*m_pTimer = new QTimer(this);952 m_pTimer = new QTimer(this); 949 953 if (m_pTimer) 950 954 { … … 953 957 } 954 958 if (isRunning() && m_pTimer) 955 m_pTimer->start(); */959 m_pTimer->start(); 956 960 } 957 961 … … 994 998 return QString(); 995 999 return gpConverter->toString(m_comCloudMachine.GetState()); 1000 } 1001 1002 void UIActivityOverviewItemCloud::sltTimeout() 1003 { 996 1004 } 997 1005 … … 1431 1439 if (iIndex != -1 && iIndex < m_itemList.size()) 1432 1440 { 1433 UIActivityOverviewItemLocal *pItem = dynamic_cast<UIActivityOverviewItemLocal*>(m_itemList[iIndex]);1441 UIActivityOverviewItemLocal *pItem = qobject_cast<UIActivityOverviewItemLocal*>(m_itemList[iIndex]); 1434 1442 if (pItem) 1435 1443 {
Note:
See TracChangeset
for help on using the changeset viewer.