VirtualBox

Changeset 98762 in vbox for trunk


Ignore:
Timestamp:
Feb 27, 2023 5:24:41 PM (22 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322. Fix for r156066. Must use UIMachine wrapper.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp

    r98751 r98762  
    829829                                           isHWVirtExUXEnabled(),
    830830                                           paravirtProvider());
     831}
     832
     833void UIMachine::generateMachineInformationGeneral(const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &fOptions,
     834                                                  UITextTable &returnTable)
     835{
     836    uisession()->generateMachineInformationGeneral(fOptions, returnTable);
    831837}
    832838
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h

    r98751 r98762  
    4040#include "UIMachineDefs.h"
    4141#include "UIMousePointerShapeData.h"
     42#include "UITextTable.h"
    4243
    4344/* COM includes: */
     
    4748class QWidget;
    4849class UIActionPool;
     50class UIMachineLogic;
    4951class UISession;
    50 class UIMachineLogic;
    5152class CMediumAttachment;
    5253class CNetworkAdapter;
     
    627628    /** @} */
    628629
     630    /** @name VM information stuff.
     631     ** @{ */
     632        /** Return general info. for the machine(). */
     633        void generateMachineInformationGeneral(const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &fOptions,
     634                                               UITextTable &returnTable);
     635    /** @} */
     636
    629637public slots:
    630638
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.cpp

    r98761 r98762  
    4545#include "UIInformationConfiguration.h"
    4646#include "UIMachine.h"
    47 #include "UISession.h"
    4847#include "UIVirtualBoxEventHandler.h"
    4948
     
    110109void UIInformationConfiguration::createTableItems()
    111110{
    112     if (!m_pTableWidget)
    113         return;
    114     if (!gpMachine || !gpMachine->uisession())
    115         return;
    116     UISession *pSession = gpMachine->uisession();
     111    if (!m_pTableWidget || !gpMachine)
     112        return;
     113
    117114    resetTable();
    118115    QFontMetrics fontMetrics(m_pTableWidget->font());
    119116    int iMaxColumn1Length = 0;
     117
    120118    /* General section: */
    121119    insertTitleRow(m_strGeneralTitle, UIIconPool::iconSet(":/machine_16px.png"), fontMetrics);
    122120    UITextTable infoRows;
    123     pSession->generateMachineInformationGeneral(UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral_Default, infoRows);
     121    gpMachine->generateMachineInformationGeneral(UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral_Default, infoRows);
    124122    insertInfoRows(infoRows, fontMetrics, iMaxColumn1Length);
    125123
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