VirtualBox

Changeset 101277 in vbox for trunk


Ignore:
Timestamp:
Sep 27, 2023 6:23:32 AM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159260
Message:

FE/Qt: bugref:10523. Some cleaning.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSTypeII.cpp

    r101272 r101277  
    3535    m_guestOSFamilies.clear();
    3636    //m_guestOSTypesPerFamily.clear();
    37     QList<CGuestOSType> otherOSTypes;
     37    QVector<CGuestOSType> otherOSTypes;
    3838    foreach (const CGuestOSType &comType, guestOSTypes)
    3939    {
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSTypeII.h

    r101272 r101277  
    3333
    3434/* Qt includes: */
    35 #include <QList>
     35#include <QVector>
    3636#include <QMap>
    3737#include <QString>
     
    5050public:
    5151
    52     typedef QList<QPair<QString, QString> > UIGuestOSTypeFamilyInfo;
    53     typedef QList<QPair<QString, QString> > UIGuestOSTypeInfo;
     52    typedef QVector<QPair<QString, QString> > UIGuestOSTypeFamilyInfo;
     53    typedef QVector<QPair<QString, QString> > UIGuestOSTypeInfo;
    5454
    5555    void reCacheGuestOSTypes(const CGuestOSTypeVector &guestOSTypes);
     
    7777    void addGuestOSType(const CGuestOSType &comType);
    7878
    79     QList<UIGuestOSTypeII> m_guestOSTypes;
     79    QVector<UIGuestOSTypeII> m_guestOSTypes;
    8080    /* First item of the pair is family id and the 2nd is family description. */
    8181    UIGuestOSTypeInfo m_guestOSFamilies;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.h

    r101272 r101277  
    5454    Q_OBJECT;
    5555    Q_PROPERTY(QString name READ name WRITE setName);
    56 
    57     /** Simple struct representing CGuestOSType cache. */
    58     struct UIGuestOSType
    59     {
    60         QString typeId;
    61         QString typeDescription;
    62         bool is64bit;
    63     };
    6456
    6557signals:
     
    198190    /** @name Values
    199191     * @{ */
    200         /** Holds the current type cache. */
    201         QMap<QString, QList<UIGuestOSType> >  m_types;
    202 
    203192        /** Holds the VM OS type ID. */
    204193        QString  m_strTypeId;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette