From: Albert Astals Cid Date: Tue, 12 Jul 2005 16:52:59 +0000 (+0000) Subject: draw the text rotated 90º some adjustements may need to be made to the translate... X-Git-Tag: v3.80.2~300^2~90 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=75fc88ce2d21f147e31ceb45eec92aab65273b20;p=libqmvoc.git draw the text rotated 90º some adjustements may need to be made to the translate so that positions are a bit better svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.cpp; revision=434027 --- diff --git a/kalzium/src/spectrum.cpp b/kalzium/src/spectrum.cpp index eb2f51a..047cd0b 100644 --- a/kalzium/src/spectrum.cpp +++ b/kalzium/src/spectrum.cpp @@ -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++; }