VirtualBox

Ignore:
Timestamp:
Feb 7, 2019 5:06:17 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128703
Message:

FE/Qt: bugref:9373: A bit of cleanup/rework for UIGraphicsScrollArea & UIGraphicsScrollBar for better scrolling experience.

File:
1 edited

Legend:

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

    r77156 r77203  
    117117            {
    118118                if (angleDelta.x() > 0)
    119                     m_pScrollBar->setValue(m_pScrollBar->value() - m_pScrollBar->wheelStep());
    120                 else
    121                     m_pScrollBar->setValue(m_pScrollBar->value() + m_pScrollBar->wheelStep());
     119                    m_pScrollBar->setValue(m_pScrollBar->value() - m_pScrollBar->step());
     120                else
     121                    m_pScrollBar->setValue(m_pScrollBar->value() + m_pScrollBar->step());
    122122                break;
    123123            }
     
    126126            {
    127127                if (angleDelta.y() > 0)
    128                     m_pScrollBar->setValue(m_pScrollBar->value() - m_pScrollBar->wheelStep());
    129                 else
    130                     m_pScrollBar->setValue(m_pScrollBar->value() + m_pScrollBar->wheelStep());
     128                    m_pScrollBar->setValue(m_pScrollBar->value() - m_pScrollBar->step());
     129                else
     130                    m_pScrollBar->setValue(m_pScrollBar->value() + m_pScrollBar->step());
    131131                break;
    132132            }
     
    171171    if (m_pScrollBar)
    172172    {
     173        m_pScrollBar->setStep(10);
    173174        m_pScrollBar->setZValue(1);
    174175        connect(m_pScrollBar, &UIGraphicsScrollBar::sigValueChanged,
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