comparison layer/SpectrogramLayer.cpp @ 282:4edaff85875d

* Add mouse actions to key and mouse reference dialog * Use QDialogButtonBox in all dialogs, for proper button ordering across platforms (requires Qt 4.2) * Fix #1733610 program does not exit if preferences dialog visible on close
author Chris Cannam
date Thu, 05 Jul 2007 11:07:01 +0000
parents 3c402c6052f6
children 86a112b5b319
comparison
equal deleted inserted replaced
281:ac58acbd7482 282:4edaff85875d
2500 void 2500 void
2501 SpectrogramLayer::paintCrosshairs(View *v, QPainter &paint, 2501 SpectrogramLayer::paintCrosshairs(View *v, QPainter &paint,
2502 QPoint cursorPos) const 2502 QPoint cursorPos) const
2503 { 2503 {
2504 paint.save(); 2504 paint.save();
2505 QFont fn = paint.font();
2506 if (fn.pointSize() > 8) {
2507 fn.setPointSize(fn.pointSize() - 1);
2508 paint.setFont(fn);
2509 }
2505 paint.setPen(m_crosshairColour); 2510 paint.setPen(m_crosshairColour);
2506 2511
2507 paint.drawLine(0, cursorPos.y(), cursorPos.x() - 1, cursorPos.y()); 2512 paint.drawLine(0, cursorPos.y(), cursorPos.x() - 1, cursorPos.y());
2508 paint.drawLine(cursorPos.x(), 0, cursorPos.x(), v->height()); 2513 paint.drawLine(cursorPos.x(), 0, cursorPos.x(), v->height());
2509 2514