comparison layer/SpectrumLayer.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 1284955856ab
comparison
equal deleted inserted replaced
281:ac58acbd7482 282:4edaff85875d
438 QPoint cursorPos) const 438 QPoint cursorPos) const
439 { 439 {
440 if (!m_sliceableModel) return; 440 if (!m_sliceableModel) return;
441 441
442 paint.save(); 442 paint.save();
443 QFont fn = paint.font();
444 if (fn.pointSize() > 8) {
445 fn.setPointSize(fn.pointSize() - 1);
446 paint.setFont(fn);
447 }
443 448
444 ColourMapper mapper(m_colourMap, 0, 1); 449 ColourMapper mapper(m_colourMap, 0, 1);
445 paint.setPen(mapper.getContrastingColour()); 450 paint.setPen(mapper.getContrastingColour());
446 451
447 int xorigin = m_xorigins[v]; 452 int xorigin = m_xorigins[v];