Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/SpectrumLayer.cpp Wed Jul 04 17:22:12 2007 +0000 +++ b/layer/SpectrumLayer.cpp Thu Jul 05 11:07:01 2007 +0000 @@ -440,6 +440,11 @@ if (!m_sliceableModel) return; paint.save(); + QFont fn = paint.font(); + if (fn.pointSize() > 8) { + fn.setPointSize(fn.pointSize() - 1); + paint.setFont(fn); + } ColourMapper mapper(m_colourMap, 0, 1); paint.setPen(mapper.getContrastingColour());