VirtualBox

Changeset 87248 in vbox


Ignore:
Timestamp:
Jan 14, 2021 10:01:26 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142206
Message:

FE/Qt: bugref:9871: UIPortForwardingTable: Few layout fixes.

File:
1 edited

Legend:

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

    r87247 r87248  
    970970void UIPortForwardingTable::sltAdjustTable()
    971971{
    972     m_pTableView->horizontalHeader()->setStretchLastSection(false);
     972    /* Make sure layout requests really processed first of all: */
     973    QCoreApplication::sendPostedEvents(0, QEvent::LayoutRequest);
     974
    973975    /* If table is NOT empty: */
    974976    if (m_pTableModel->rowCount())
     
    989991            m_pTableView->horizontalHeader()->resizeSection(u, uFullWidth / UIPortForwardingDataType_Max);
    990992    }
    991     m_pTableView->horizontalHeader()->setStretchLastSection(true);
    992993}
    993994
     
    10311032    {
    10321033        /* Configure table-view: */
     1034        m_pTableView->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
    10331035        m_pTableView->setTabKeyNavigation(false);
    10341036        m_pTableView->verticalHeader()->hide();
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