Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54909 - in /trunk/qt-graph: examples/fonts.dot src/QGraph.cc
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Thu, 22 Jan 2009 13:41:30 -0000
  • Message-id: <E1LPzoI-0001mL-8z@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Thu Jan 22 14:41:30 2009
New Revision: 54909

URL: http://svn.opensuse.org/viewcvs/yast?rev=54909&view=rev
Log:
- added font style handling

Added:
trunk/qt-graph/examples/fonts.dot
Modified:
trunk/qt-graph/src/QGraph.cc

Added: trunk/qt-graph/examples/fonts.dot
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/examples/fonts.dot?rev=54909&view=auto
==============================================================================
--- trunk/qt-graph/examples/fonts.dot (added)
+++ trunk/qt-graph/examples/fonts.dot Thu Jan 22 14:41:30 2009
@@ -0,0 +1,10 @@
+digraph
+{
+ node [style="filled"];
+
+ A [label="Times", fontname="Times", fontsize="12"];
+ B [label="Times", fontname="Times", fontsize="24"];
+
+ C [label="Helvetica", fontname="Helvetica", fontsize="12"];
+ D [label="Helvetica", fontname="Helvetica", fontsize="24"];
+}

Modified: trunk/qt-graph/src/QGraph.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/src/QGraph.cc?rev=54909&r1=54908&r2=54909&view=diff
==============================================================================
--- trunk/qt-graph/src/QGraph.cc (original)
+++ trunk/qt-graph/src/QGraph.cc Thu Jan 22 14:41:30 2009
@@ -270,8 +270,8 @@
{
painter->setPen(textlabel->fontcolor);

- QFont font(painter->font());
- font.setPixelSize(textlabel->fontsize);
+ // TODO: font is too huge
+ QFont font(textlabel->fontname, 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