VirtualBox

Changeset 105005 in vbox


Ignore:
Timestamp:
Jun 24, 2024 5:33:59 PM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163623
Message:

FE/Qt: bugref:10681: UIPortForwardingTable: Regression fix for r163622.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp

    r105004 r105005  
    555555        beginInsertRows(QModelIndex(), 0, newRules.size() - 1);
    556556        foreach (const UIDataPortForwardingRule &rule, newRules)
    557             m_dataList << new UIPortForwardingRow(qobject_cast<QITableView*>(parent()),
     557            m_dataList << new UIPortForwardingRow(view(),
    558558                                                  rule.name, rule.protocol,
    559559                                                  rule.hostIp, rule.hostPort,
     
    745745                case UIPortForwardingDataType_GuestIp:
    746746                {
    747                     const QFontMetrics fm = qobject_cast<QWidget*>(parent())->fontMetrics();
     747                    const QFontMetrics fm = m_pPortForwardingTable->fontMetrics();
    748748                    return QSize(fm.horizontalAdvance(" 888.888.888.888 "), fm.height());
    749749                }
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