Changeset 71059 in vbox
- Timestamp:
- Feb 19, 2018 4:32:29 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120922
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlTreeItem.cpp
r71052 r71059 195 195 { 196 196 prepare(); 197 initProcessSubTree(); 197 198 } 198 199 … … 203 204 { 204 205 prepare(); 205 206 initProcessSubTree(); 206 207 } 207 208 … … 240 241 } 241 242 243 void UIGuestSessionTreeItem::initProcessSubTree() 244 { 245 if (!m_comGuestSession.isOk()) 246 return; 247 QVector<CGuestProcess> processes = m_comGuestSession.GetProcesses(); 248 for(int i =0; i < processes.size(); ++i) 249 addGuestProcess(processes[i]); 250 } 251 242 252 void UIGuestSessionTreeItem::sltGuestSessionUpdated() 243 253 { … … 250 260 if (!guestProcess.isOk()) 251 261 return; 262 addGuestProcess(guestProcess); 263 } 264 265 void UIGuestSessionTreeItem::addGuestProcess(CGuestProcess guestProcess) 266 { 252 267 QStringList strList; 253 268 strList … … 255 270 << QString("Process Name: %1").arg(guestProcess.GetName()) 256 271 << QString("Process Status: %1").arg(processStatusString(guestProcess.GetStatus())); 272 257 273 /*UIGuestProcessTreeItem *newItem = */new UIGuestProcessTreeItem(this, guestProcess, strList); 258 274 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlTreeItem.h
r71049 r71059 96 96 virtual void cleanupListener() /* override */; 97 97 virtual void setColumnText() /* override */; 98 98 void addGuestProcess(CGuestProcess guestProcess); 99 void initProcessSubTree(); 99 100 CGuestSession m_comGuestSession; 100 101 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIInformationGuestSession.cpp
r71058 r71059 135 135 private slots: 136 136 137 void sltExpandAll( bool bExpand)137 void sltExpandAll() 138 138 { 139 139 expandCollapseAll(true); … … 177 177 prepareObjects(); 178 178 prepareConnections(); 179 initGuestSessionTree(); 179 180 } 180 181 … … 331 332 } 332 333 334 void UIInformationGuestSession::initGuestSessionTree() 335 { 336 if (!m_comGuest.isOk()) 337 return; 338 339 QVector<CGuestSession> sessions = m_comGuest.GetSessions(); 340 for (int i = 0; i < sessions.size(); ++i) 341 { 342 addGuestSession(sessions.at(i)); 343 } 344 } 345 333 346 void UIInformationGuestSession::cleanupListener() 334 347 { … … 357 370 if (!guestSession.isOk()) 358 371 return; 359 372 addGuestSession(guestSession); 373 } 374 375 void UIInformationGuestSession::addGuestSession(CGuestSession guestSession) 376 { 360 377 UIGuestSessionTreeItem* sessionTreeItem = new UIGuestSessionTreeItem(m_pTreeWidget, guestSession); 361 378 connect(sessionTreeItem, &UIGuestSessionTreeItem::sigGuessSessionUpdated, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIInformationGuestSession.h
r71049 r71059 66 66 void prepareConnections(); 67 67 void prepareListener(); 68 void initGuestSessionTree(); 68 69 void updateTreeWidget(); 69 70 void cleanupListener(); 71 void addGuestSession(CGuestSession guestSession); 72 70 73 CGuest m_comGuest; 71 74 QVBoxLayout *m_pMainLayout;
Note:
See TracChangeset
for help on using the changeset viewer.