VirtualBox

Changeset 101391 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 9, 2023 10:09:06 AM (16 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: UISettingsSelector: A bit of rework for tree-widget selector item.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.cpp

    r101390 r101391  
    122122    /** Constructs selector item.
    123123      * @param  icon       Brings the item icon.
    124       * @param  strText    Brings the item text.
    125124      * @param  iID        Brings the item ID.
    126125      * @param  strLink    Brings the item link.
    127126      * @param  pPage      Brings the item page reference.
    128127      * @param  iParentID  Brings the item parent ID. */
    129     UISelectorItem(const QIcon &icon, const QString &strText, int iID, const QString &strLink, UISettingsPage *pPage, int iParentID)
     128    UISelectorItem(const QIcon &icon, int iID, const QString &strLink, UISettingsPage *pPage, int iParentID)
    130129        : m_icon(icon)
    131         , m_strText(strText)
    132130        , m_iID(iID)
    133131        , m_strLink(strLink)
     
    178176    /** Constructs selector item.
    179177      * @param  icon       Brings the item icon.
    180       * @param  strText    Brings the item text.
    181178      * @param  iID        Brings the item ID.
    182179      * @param  strLink    Brings the item link.
     
    184181      * @param  iParentID  Brings the item parent ID.
    185182      * @param  pParent    Brings the item parent. */
    186     UISelectorActionItem(const QIcon &icon, const QString &strText, int iID, const QString &strLink, UISettingsPage *pPage, int iParentID, QObject *pParent)
    187         : UISelectorItem(icon, strText, iID, strLink, pPage, iParentID)
    188         , m_pAction(new QAction(icon, strText, pParent))
     183    UISelectorActionItem(const QIcon &icon, int iID, const QString &strLink, UISettingsPage *pPage, int iParentID, QObject *pParent)
     184        : UISelectorItem(icon, iID, strLink, pPage, iParentID)
     185        , m_pAction(new QAction(icon, QString(), pParent))
    189186        , m_pTabWidget(0)
    190187    {
     
    328325        const QIcon icon = UIIconPool::iconSet(strMediumIcon);
    329326
    330         UISelectorItem *pItem = new UISelectorItem(icon, "", iID, strLink, pPage, iParentID);
     327        UISelectorItem *pItem = new UISelectorItem(icon, iID, strLink, pPage, iParentID);
    331328        m_list.append(pItem);
    332329
     
    524521
    525522    QWidget *pResult = 0;
    526     UISelectorActionItem *pItem = new UISelectorActionItem(icon, "", iID, strLink, pPage, iParentID, this);
     523    UISelectorActionItem *pItem = new UISelectorActionItem(icon, iID, strLink, pPage, iParentID, this);
    527524    m_list.append(pItem);
    528525
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