Commits
1000 1000 | void QtCanvas::setShowTopAxis( bool showAxis ) { |
1001 1001 | bool oldShowAxis = showTopAxis; |
1002 1002 | showTopAxis = showAxis; |
1003 1003 | if ( oldShowAxis != showTopAxis ) { |
1004 1004 | refreshPixmap(); |
1005 1005 | } |
1006 1006 | } |
1007 1007 | |
1008 1008 | void QtCanvas::refreshPixmap() { |
1009 1009 | pixmap = QPixmap(size()); |
1010 + | |
1011 + | pixmap.fill(); // default color is white |
1012 + | |
1010 1013 | pixmap.fill(this, 0, 0); |
1014 + | |
1011 1015 | QPainter painter(&pixmap); |
1012 1016 | |
1013 1017 | drawLabels(&painter); |
1014 1018 | if (!imageMode) { |
1015 1019 | drawGrid(&painter); |
1016 1020 | drawCurves(&painter); |
1017 1021 | drawFrameMarker(&painter); |
1018 1022 | drawMolecularLines( painter ); |
1019 1023 | drawAnnotations( painter ); |
1020 1024 | } else { |