]> Git trees. - libqmvoc.git/commitdiff
draw the text rotated 90ยบ some adjustements may need to be made to the translate...
authorAlbert Astals Cid <tsdgeos@terra.es>
Tue, 12 Jul 2005 16:52:59 +0000 (16:52 +0000)
committerAlbert Astals Cid <tsdgeos@terra.es>
Tue, 12 Jul 2005 16:52:59 +0000 (16:52 +0000)
svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.cpp; revision=434027

kalzium/src/spectrum.cpp

index eb2f51a593a33be90e11e814e310f94b78ad596a..047cd0b69c9b47f8541e762ec4875c358ee8e391 100644 (file)
@@ -81,7 +81,11 @@ void SpectrumWidget::drawLines( QPainter *p )
                        temp = 0;
                
                p->drawLine( x,0,x, m_realHeight+10+temp );
-               p->drawText( x,m_realHeight+10+15+temp, QString::number( *it ));
+               p->save();
+               p->translate(x, m_realHeight+10+15+temp);
+               p->rotate(-90);
+               p->drawText(0, 0, QString::number( *it ));
+               p->restore();
 
                i++;
        }