Mercurial > hg > svgui
comparison widgets/Panner.cpp @ 193:57c2350a8c40
* Add slice layers (so you can display a slice of a colour 3d plot as if it were
a spectrum)
* Make spectrum layer a subclass of slice layer
author | Chris Cannam |
---|---|
date | Fri, 26 Jan 2007 16:59:57 +0000 |
parents | 5b7472db612b |
children | e6d0b097d102 |
comparison
equal
deleted
inserted
replaced
192:fcc043f75c41 | 193:57c2350a8c40 |
---|---|
102 } | 102 } |
103 | 103 |
104 void | 104 void |
105 Panner::wheelEvent(QWheelEvent *e) | 105 Panner::wheelEvent(QWheelEvent *e) |
106 { | 106 { |
107 if (e->delta() > 0) { | 107 if (e->delta() < 0) { |
108 m_rectY += 0.1; | 108 m_rectY += 0.1; |
109 } else { | 109 } else { |
110 m_rectY -= 0.1; | 110 m_rectY -= 0.1; |
111 } | 111 } |
112 | 112 |