Changeset 77203 in vbox
- Timestamp:
- Feb 7, 2019 5:06:17 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128703
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsScrollArea.cpp
r77156 r77203 117 117 { 118 118 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()); 122 122 break; 123 123 } … … 126 126 { 127 127 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()); 131 131 break; 132 132 } … … 171 171 if (m_pScrollBar) 172 172 { 173 m_pScrollBar->setStep(10); 173 174 m_pScrollBar->setZValue(1); 174 175 connect(m_pScrollBar, &UIGraphicsScrollBar::sigValueChanged, -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsScrollBar.cpp
r77155 r77203 191 191 } 192 192 193 int UIGraphicsScrollBar::wheelStep() const194 {195 return 10 * step();196 }197 198 193 void UIGraphicsScrollBar::setMinimum(int iMinimum) 199 194 { … … 269 264 /* Call to base-class: */ 270 265 QIGraphicsWidget::mousePressEvent(pEvent); 266 267 /* Mark event accepted so that it couldn't 268 * influence underlying widgets: */ 269 pEvent->accept(); 271 270 272 271 /* Redirect to token move handler: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsScrollBar.h
r77155 r77203 55 55 /** Returns scrolling step. */ 56 56 int step() const; 57 /** Returns scrolling wheel step. */58 int wheelStep() const;59 57 60 58 /** Defines @a iMinimum scroll-bar value. */
Note:
See TracChangeset
for help on using the changeset viewer.