- Timestamp:
- Mar 1, 2023 9:04:40 AM (21 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r98801 r98802 69 69 * UIRuntimeInfoWidget definition. * 70 70 *********************************************************************************************************************************/ 71 /** A QTablWidget extention to show some runtime attributes. Some of these are updated in response to IConsole events. Uptime field 72 * is updated thru a QTimer. */ 71 /** A QTablWidget extention to show some runtime attributes */ 73 72 class UIRuntimeInfoWidget : public QIWithRetranslateUI<QTableWidget> 74 73 { … … 78 77 public: 79 78 80 UIRuntimeInfoWidget(QWidget *pParent, const CMachine &machine , const CConsole &console);79 UIRuntimeInfoWidget(QWidget *pParent, const CMachine &machine); 81 80 void updateScreenInfo(int iScreenId = -1); 82 81 void updateGAsVersion(); … … 112 111 113 112 CMachine m_machine; 114 CConsole m_console;115 113 116 114 /** @name Cached translated strings. … … 151 149 *********************************************************************************************************************************/ 152 150 153 UIRuntimeInfoWidget::UIRuntimeInfoWidget(QWidget *pParent, const CMachine &machine , const CConsole &console)151 UIRuntimeInfoWidget::UIRuntimeInfoWidget(QWidget *pParent, const CMachine &machine) 154 152 : QIWithRetranslateUI<QTableWidget>(pParent) 155 153 , m_machine(machine) 156 , m_console(console)157 154 , m_iMinimumWidth(0) 158 155 , m_pTimer(0) … … 507 504 *********************************************************************************************************************************/ 508 505 509 UIInformationRuntime::UIInformationRuntime(QWidget *pParent, const CMachine &machine, const CConsole &console, constUIMachine *pMachine)506 UIInformationRuntime::UIInformationRuntime(QWidget *pParent, const CMachine &machine, const UIMachine *pMachine) 510 507 : QIWithRetranslateUI<QWidget>(pParent) 511 508 , m_machine(machine) 512 , m_console(console)513 509 , m_pMainLayout(0) 514 510 , m_pRuntimeInfoWidget(0) … … 538 534 m_pMainLayout->setSpacing(0); 539 535 540 m_pRuntimeInfoWidget = new UIRuntimeInfoWidget(0, m_machine , m_console);536 m_pRuntimeInfoWidget = new UIRuntimeInfoWidget(0, m_machine); 541 537 AssertReturnVoid(m_pRuntimeInfoWidget); 542 538 connect(m_pRuntimeInfoWidget, &UIRuntimeInfoWidget::customContextMenuRequested, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.h
r98786 r98802 37 37 /* COM includes: */ 38 38 #include "COMEnums.h" 39 #include "CConsole.h"40 39 #include "CMachine.h" 41 40 … … 58 57 59 58 /** Constructs information-tab passing @a pParent to the QWidget base-class constructor. 60 * @param machine is machine reference. 61 * @param console is machine console reference. */ 62 UIInformationRuntime(QWidget *pParent, const CMachine &machine, const CConsole &console, const UIMachine *pMachine); 59 * @param machine is machine reference. */ 60 UIInformationRuntime(QWidget *pParent, const CMachine &machine, const UIMachine *pMachine); 63 61 64 62 protected: … … 84 82 85 83 CMachine m_machine; 86 CConsole m_console;87 84 88 85 /** Holds the instance of layout we create. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r98769 r98802 218 218 /* Create Runtime Information tab: */ 219 219 UIInformationRuntime *pInformationRuntimeWidget = 220 new UIInformationRuntime(this, m_pMachine->uisession()->machine(), m_pMachine ->uisession()->console(), m_pMachine);220 new UIInformationRuntime(this, m_pMachine->uisession()->machine(), m_pMachine); 221 221 if (pInformationRuntimeWidget) 222 222 {
Note:
See TracChangeset
for help on using the changeset viewer.