VirtualBox

Ignore:
Timestamp:
Oct 20, 2020 2:37:58 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141028
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Restore root group scrolling position if possible while rebuilding the tree.

File:
1 edited

Legend:

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

    r82968 r86652  
    114114}
    115115
     116int UIGraphicsScrollArea::scrollingValue() const
     117{
     118    return m_pScrollBar->value();
     119}
     120
     121void UIGraphicsScrollArea::setScrollingValue(int iValue)
     122{
     123    iValue = qMax(iValue, 0);
     124    iValue = qMin(iValue, m_pScrollBar->maximum());
     125    m_pScrollBar->setValue(iValue);
     126}
     127
    116128void UIGraphicsScrollArea::scrollBy(int iDelta)
    117129{
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