VirtualBox

Changeset 98761 in vbox


Ignore:
Timestamp:
Feb 27, 2023 4:31:12 PM (21 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322. In vm information dialog, use UISession wrapper for machine general info table.

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  
    5252#include "UISession.h"
    5353#include "UISettingsDialogSpecific.h"
     54#include "UITextTable.h"
    5455#ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER
    5556# include "UIKeyboardHandler.h"
     
    14031404}
    14041405
     1406void UISession::generateMachineInformationGeneral(const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &fOptions,
     1407                                                         UITextTable &returnTable)
     1408{
     1409    CMachine comMachine = machine();
     1410    returnTable = UIDetailsGenerator::generateMachineInformationGeneral(comMachine, fOptions);
     1411}
     1412
    14051413bool UISession::setLogEnabled(bool fEnabled)
    14061414{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r98751 r98761  
    4343#include "UIMediumDefs.h"
    4444#include "UIMousePointerShapeData.h"
     45#include "UITextTable.h"
    4546
    4647/* COM includes: */
     
    528529    /** @} */
    529530
     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
    530538public slots:
    531539
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.cpp

    r98103 r98761  
    4444#include "UIIconPool.h"
    4545#include "UIInformationConfiguration.h"
     46#include "UIMachine.h"
     47#include "UISession.h"
    4648#include "UIVirtualBoxEventHandler.h"
    4749
     
    110112    if (!m_pTableWidget)
    111113        return;
     114    if (!gpMachine || !gpMachine->uisession())
     115        return;
     116    UISession *pSession = gpMachine->uisession();
    112117    resetTable();
    113118    QFontMetrics fontMetrics(m_pTableWidget->font());
     
    115120    /* General section: */
    116121    insertTitleRow(m_strGeneralTitle, UIIconPool::iconSet(":/machine_16px.png"), fontMetrics);
    117     insertInfoRows(UIDetailsGenerator::generateMachineInformationGeneral(m_machine,
    118                                                                          UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral_Default),
    119                   fontMetrics, iMaxColumn1Length);
     122    UITextTable infoRows;
     123    pSession->generateMachineInformationGeneral(UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral_Default, infoRows);
     124    insertInfoRows(infoRows, fontMetrics, iMaxColumn1Length);
    120125
    121126    /* System section: */
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