VirtualBox

儲存庫 vbox 的更動 60524


忽略:
時間撮記:
2016-4-15 下午05:51:31 (9 年 以前)
作者:
vboxsync
訊息:

FE/Qt: ​bugref:8305: Selector UI: Chooser-pane: Group minimum size hint issue fixes:

  1. Reset minimum size hint for 'non-root' group items to exclude their influence onto Chooser-pane;
  2. Keep 'root' group item status and geometry actual on group sliding transactions;
  3. Listen for size hint change signals of any sub-group, not just the main group.
位置:
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
檔案:
修改 4 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItem.cpp

    r60084 r60524  
    343343}
    344344
     345void UIGChooserItem::handleRootStatusChange()
     346{
     347    /* Reset minimum size hints for non-root items: */
     348    if (!isRoot())
     349    {
     350        m_iPreviousMinimumWidthHint = 0;
     351        m_iPreviousMinimumHeightHint = 0;
     352    }
     353}
     354
    345355/* static */
    346356void UIGChooserItem::configurePainterShape(QPainter *pPainter,
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItem.h

    r55401 r60524  
    158158
    159159    /* Helper: Update stuff: */
    160     virtual void handleRootStatusChange() {}
     160    virtual void handleRootStatusChange();
    161161    void setPreviousGeometry(const QRectF &previousGeometry) { m_previousGeometry = previousGeometry; }
    162162    const QRectF& previousGeometry() const { return m_previousGeometry; }
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp

    r52733 r60524  
    120120    updateVisibleName();
    121121    updateToolTip();
     122
     123    /* Prepare root-item connections: */
     124    connect(this, SIGNAL(sigMinimumWidthHintChanged(int)),
     125            model(), SIGNAL(sigRootItemMinimumWidthHintChanged(int)));
     126    connect(this, SIGNAL(sigMinimumHeightHintChanged(int)),
     127            model(), SIGNAL(sigRootItemMinimumHeightHintChanged(int)));
    122128}
    123129
     
    457463void UIGChooserItemGroup::handleRootStatusChange()
    458464{
     465    /* Call to base-class: */
     466    UIGChooserItem::handleRootStatusChange();
     467
    459468    /* Update linked values: */
    460469    updateVisibleName();
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r58867 r60524  
    463463
    464464    /* Indent root: */
     465    root()->setRoot(false);
    465466    m_rootStack << pNewRootItem;
    466467    root()->setRoot(true);
     
    499500    m_pAfterSlidingFocus = root();
    500501    m_rootStack.removeLast();
     502    root()->setRoot(true);
    501503
    502504    /* Slide root: */
     
    745747    /* We are no more sliding: */
    746748    m_fSliding = false;
     749
     750    /* Update root geometry: */
     751    root()->updateGeometry();
    747752
    748753    /* Update model: */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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