Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54977 - /trunk/qt-graph/src/QGraph.cc
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Sun, 25 Jan 2009 20:39:23 -0000
  • Message-id: <E1LRBlL-0006Lt-Tb@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Sun Jan 25 21:39:23 2009
New Revision: 54977

URL: http://svn.opensuse.org/viewcvs/yast?rev=54977&view=rev
Log:
- tiny refactoring

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=54977&r1=54976&r2=54977&view=diff
==============================================================================
--- trunk/qt-graph/src/QGraph.cc (original)
+++ trunk/qt-graph/src/QGraph.cc Sun Jan 25 21:39:23 2009
@@ -278,10 +278,10 @@
painter->setFont(font);

QString text(QString::fromUtf8(textlabel->text));
- QFontMetrics fm(painter->fontMetrics());
+ QFontMetricsF fm(painter->fontMetrics());
QRectF rect(fm.boundingRect(text));
rect.moveCenter(gToQ(textlabel->p, false));
- painter->drawText(rect.adjusted(-1, -1, +1, +1), Qt::AlignCenter |
Qt::AlignHCenter, text);
+ painter->drawText(rect.adjusted(-1, -1, +1, +1), Qt::AlignCenter, 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