Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54919 - /trunk/qt-graph/src/QGraph.cc
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Thu, 22 Jan 2009 16:51:04 -0000
  • Message-id: <E1LQ2lk-0004PR-RS@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages