VirtualBox

Changeset 98802 in vbox for trunk


Ignore:
Timestamp:
Mar 1, 2023 9:04:40 AM (21 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322. Removing CConsole references from UIRuntimeInfoWidget.

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  
    6969*   UIRuntimeInfoWidget definition.                                                                                     *
    7070*********************************************************************************************************************************/
    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 */
    7372class UIRuntimeInfoWidget : public QIWithRetranslateUI<QTableWidget>
    7473{
     
    7877public:
    7978
    80     UIRuntimeInfoWidget(QWidget *pParent, const CMachine &machine, const CConsole &console);
     79    UIRuntimeInfoWidget(QWidget *pParent, const CMachine &machine);
    8180    void updateScreenInfo(int iScreenId = -1);
    8281    void updateGAsVersion();
     
    112111
    113112    CMachine m_machine;
    114     CConsole m_console;
    115113
    116114    /** @name Cached translated strings.
     
    151149*********************************************************************************************************************************/
    152150
    153 UIRuntimeInfoWidget::UIRuntimeInfoWidget(QWidget *pParent, const CMachine &machine, const CConsole &console)
     151UIRuntimeInfoWidget::UIRuntimeInfoWidget(QWidget *pParent, const CMachine &machine)
    154152    : QIWithRetranslateUI<QTableWidget>(pParent)
    155153    , m_machine(machine)
    156     , m_console(console)
    157154    , m_iMinimumWidth(0)
    158155    , m_pTimer(0)
     
    507504*********************************************************************************************************************************/
    508505
    509 UIInformationRuntime::UIInformationRuntime(QWidget *pParent, const CMachine &machine, const CConsole &console, const UIMachine *pMachine)
     506UIInformationRuntime::UIInformationRuntime(QWidget *pParent, const CMachine &machine, const UIMachine *pMachine)
    510507    : QIWithRetranslateUI<QWidget>(pParent)
    511508    , m_machine(machine)
    512     , m_console(console)
    513509    , m_pMainLayout(0)
    514510    , m_pRuntimeInfoWidget(0)
     
    538534    m_pMainLayout->setSpacing(0);
    539535
    540     m_pRuntimeInfoWidget = new UIRuntimeInfoWidget(0, m_machine, m_console);
     536    m_pRuntimeInfoWidget = new UIRuntimeInfoWidget(0, m_machine);
    541537    AssertReturnVoid(m_pRuntimeInfoWidget);
    542538    connect(m_pRuntimeInfoWidget, &UIRuntimeInfoWidget::customContextMenuRequested,
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.h

    r98786 r98802  
    3737/* COM includes: */
    3838#include "COMEnums.h"
    39 #include "CConsole.h"
    4039#include "CMachine.h"
    4140
     
    5857
    5958    /** 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);
    6361
    6462protected:
     
    8482
    8583    CMachine m_machine;
    86     CConsole m_console;
    8784
    8885    /** Holds the instance of layout we create. */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp

    r98769 r98802  
    218218        /* Create Runtime Information tab: */
    219219        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);
    221221        if (pInformationRuntimeWidget)
    222222        {
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