Changeset 98761 in vbox
- Timestamp:
- Feb 27, 2023 4:31:12 PM (21 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98751 r98761 52 52 #include "UISession.h" 53 53 #include "UISettingsDialogSpecific.h" 54 #include "UITextTable.h" 54 55 #ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER 55 56 # include "UIKeyboardHandler.h" … … 1403 1404 } 1404 1405 1406 void UISession::generateMachineInformationGeneral(const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &fOptions, 1407 UITextTable &returnTable) 1408 { 1409 CMachine comMachine = machine(); 1410 returnTable = UIDetailsGenerator::generateMachineInformationGeneral(comMachine, fOptions); 1411 } 1412 1405 1413 bool UISession::setLogEnabled(bool fEnabled) 1406 1414 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r98751 r98761 43 43 #include "UIMediumDefs.h" 44 44 #include "UIMousePointerShapeData.h" 45 #include "UITextTable.h" 45 46 46 47 /* COM includes: */ … … 528 529 /** @} */ 529 530 531 /** @name VM information stuff. 532 ** @{ */ 533 /** Return general info. for the machine(). */ 534 void generateMachineInformationGeneral(const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &fOptions, 535 UITextTable &returnTable); 536 /** @} */ 537 530 538 public slots: 531 539 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.cpp
r98103 r98761 44 44 #include "UIIconPool.h" 45 45 #include "UIInformationConfiguration.h" 46 #include "UIMachine.h" 47 #include "UISession.h" 46 48 #include "UIVirtualBoxEventHandler.h" 47 49 … … 110 112 if (!m_pTableWidget) 111 113 return; 114 if (!gpMachine || !gpMachine->uisession()) 115 return; 116 UISession *pSession = gpMachine->uisession(); 112 117 resetTable(); 113 118 QFontMetrics fontMetrics(m_pTableWidget->font()); … … 115 120 /* General section: */ 116 121 insertTitleRow(m_strGeneralTitle, UIIconPool::iconSet(":/machine_16px.png"), fontMetrics); 117 insertInfoRows(UIDetailsGenerator::generateMachineInformationGeneral(m_machine,118 UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral_Default),119 122 UITextTable infoRows; 123 pSession->generateMachineInformationGeneral(UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral_Default, infoRows); 124 insertInfoRows(infoRows, fontMetrics, iMaxColumn1Length); 120 125 121 126 /* System section: */
Note:
See TracChangeset
for help on using the changeset viewer.