summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-19 15:06:11 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-01-14 12:45:50 (GMT)
commite8271e69e1bddc2d5d251ebf34909a53fd711d0e (patch)
treed2090963360a7077ff15eacd679da58bcd57e19d
parente3723b2609a5beb10f58690bb58a236a95b1e743 (diff)
downloadQt-e8271e69e1bddc2d5d251ebf34909a53fd711d0e.zip
Qt-e8271e69e1bddc2d5d251ebf34909a53fd711d0e.tar.gz
Qt-e8271e69e1bddc2d5d251ebf34909a53fd711d0e.tar.bz2
Whitespace
Trailing spaces and an extra line of whitespace.
-rw-r--r--src/gui/text/qstatictext.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/text/qstatictext.cpp b/src/gui/text/qstatictext.cpp
index b3edde6..e3bb950 100644
--- a/src/gui/text/qstatictext.cpp
+++ b/src/gui/text/qstatictext.cpp
@@ -65,7 +65,7 @@ void QStaticTextPrivate::init(const QString &text, const QFont &font)
{
Q_ASSERT(textLayout == 0);
textLayout = new QTextLayout(text, font);
- textLayout->setCacheEnabled(true);
+ textLayout->setCacheEnabled(true);
QFontMetrics fontMetrics(font);
@@ -73,11 +73,10 @@ void QStaticTextPrivate::init(const QString &text, const QFont &font)
int h = -fontMetrics.ascent();
QTextLine line;
if ((line = textLayout->createLine()).isValid()) {
- line.setLineWidth(fontMetrics.width(text));
+ line.setLineWidth(fontMetrics.width(text));
line.setPosition(QPointF(0, h));
h += line.height();
}
-
}
QT_END_NAMESPACE