VirtualBox

儲存庫 vbox 的更動 67377


忽略:
時間撮記:
2017-6-13 下午03:24:25 (7 年 以前)
作者:
vboxsync
訊息:

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

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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