comparison widgets/Panner.cpp @ 249:e6d0b097d102 sv1-1.0rc1

* more compile warning fixes
author Chris Cannam
date Mon, 30 Apr 2007 14:06:45 +0000
parents 57c2350a8c40
children c492902dba40
comparison
equal deleted inserted replaced
248:28c8e8e3c537 249:e6d0b097d102
125 { 125 {
126 emit mouseLeft(); 126 emit mouseLeft();
127 } 127 }
128 128
129 void 129 void
130 Panner::paintEvent(QPaintEvent *e) 130 Panner::paintEvent(QPaintEvent *)
131 { 131 {
132 QPainter paint(this); 132 QPainter paint(this);
133 paint.setRenderHint(QPainter::Antialiasing, false); 133 paint.setRenderHint(QPainter::Antialiasing, false);
134 134
135 QColor bg(palette().background().color()); 135 QColor bg(palette().background().color());
185 } 185 }
186 186
187 void 187 void
188 Panner::setRectExtents(float x0, float y0, float width, float height) 188 Panner::setRectExtents(float x0, float y0, float width, float height)
189 { 189 {
190 std::cerr << "Panner::setRectExtents(" << x0 << ", " << y0 << ", " 190 // std::cerr << "Panner::setRectExtents(" << x0 << ", " << y0 << ", "
191 << width << ", " << height << ")" << std::endl; 191 // << width << ", " << height << ")" << std::endl;
192 192
193 if (m_rectX == x0 && 193 if (m_rectX == x0 &&
194 m_rectY == y0 && 194 m_rectY == y0 &&
195 m_rectWidth == width && 195 m_rectWidth == width &&
196 m_rectHeight == height) { 196 m_rectHeight == height) {