Mercurial > hg > svgui
comparison widgets/Pane.cpp @ 68:193b569a975f
* Add scale lines to waveform layer
* Various fixes to vertical scale drawing for waveform and time-value layers
* Make log/linear scale have an effect for time-value layer segmentation mode
author | Chris Cannam |
---|---|
date | Wed, 29 Mar 2006 16:24:25 +0000 |
parents | c4fff27cd651 |
children | bf306158803d |
comparison
equal
deleted
inserted
replaced
67:c4fff27cd651 | 68:193b569a975f |
---|---|
160 // std::cerr << "Pane::paintEvent: calling paint.save() in vertical scale block" << std::endl; | 160 // std::cerr << "Pane::paintEvent: calling paint.save() in vertical scale block" << std::endl; |
161 paint.save(); | 161 paint.save(); |
162 | 162 |
163 paint.setPen(Qt::black); | 163 paint.setPen(Qt::black); |
164 paint.setBrush(Qt::white); | 164 paint.setBrush(Qt::white); |
165 paint.drawRect(0, 0, verticalScaleWidth, height()); | 165 paint.drawRect(0, -1, verticalScaleWidth, height()+1); |
166 | 166 |
167 paint.setBrush(Qt::NoBrush); | 167 paint.setBrush(Qt::NoBrush); |
168 (*vi)->paintVerticalScale | 168 (*vi)->paintVerticalScale |
169 (this, paint, QRect(0, 0, verticalScaleWidth, height())); | 169 (this, paint, QRect(0, 0, verticalScaleWidth, height())); |
170 | 170 |