Author: aschnell Date: Thu Jan 22 17:51:04 2009 New Revision: 54919 URL: http://svn.opensuse.org/viewcvs/yast?rev=54919&view=rev Log: - better font size Modified: trunk/qt-graph/src/QGraph.cc Modified: trunk/qt-graph/src/QGraph.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/src/QGraph.cc?rev=54919&r1=54918&r2=54919&view=diff ============================================================================== --- trunk/qt-graph/src/QGraph.cc (original) +++ trunk/qt-graph/src/QGraph.cc Thu Jan 22 17:51:04 2009 @@ -270,8 +270,10 @@ { painter->setPen(textlabel->fontcolor); - // TODO: font is too huge + // Since I always just take the points from graphviz and pass them to Qt + // as pixel I also have to set the pixel size of the font. QFont font(textlabel->fontname, textlabel->fontsize); + font.setPixelSize(textlabel->fontsize); painter->setFont(font); QString text(textlabel->text); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org