VirtualBox

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


Ignore:
Timestamp:
Jun 13, 2017 3:24:25 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116097
Message:

FE/Qt: Extensions: QIFlowLayout: Skip items of zero width.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFlowLayout.cpp

    r67371 r67377  
    137137    foreach (QLayoutItem *pItem, m_items)
    138138    {
     139        /* Skip items of zero width: */
     140        if (pItem->sizeHint().width() == 0)
     141            continue;
     142
    139143        /* Get item policy and width: */
    140144        const ExpandPolicy enmPolicy = pItem->expandingDirections() & Qt::Horizontal ? ExpandPolicy_Dynamic : ExpandPolicy_Fixed;
     
    173177        LayoutDataList &row = rows[i];
    174178        /* Width expand delta is equal to total-width minus all spacing widths ... */
     179        printf("row %d size: %d\n", i, row.size());
    175180        int iExpandingWidth = contentsRect.width() - (row.size() - 1) * iSpaceX;
    176181
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