summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextlayout.h
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>2011-11-02 13:30:38 +0200
committerQt by Nokia <qt-info@nokia.com>2011-11-03 16:14:08 +0100
commit255f569a43ae63fe214ac06da81abf4ed2a8cf3c (patch)
tree94e90f6113296deaae02f3ce83f5028ab9afcf66 /src/gui/text/qtextlayout.h
parent391f5670a374192293b1a737db75aeb61451b3a4 (diff)
Renamed QTextLayout member variable for readability
Class complex enough already without int i as member variable. Furthermore, some methods use loop variable with same name, shadowing the member one. Change-Id: Idf2f5e34f130a60eb6121480e596e443f23641dd Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Diffstat (limited to 'src/gui/text/qtextlayout.h')
-rw-r--r--src/gui/text/qtextlayout.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/text/qtextlayout.h b/src/gui/text/qtextlayout.h
index 04f8d6ed6c..f1bfdc75db 100644
--- a/src/gui/text/qtextlayout.h
+++ b/src/gui/text/qtextlayout.h
@@ -197,7 +197,7 @@ private:
class Q_GUI_EXPORT QTextLine
{
public:
- inline QTextLine() : i(0), eng(0) {}
+ inline QTextLine() : index(0), eng(0) {}
inline bool isValid() const { return eng; }
QRectF rect() const;
@@ -240,7 +240,7 @@ public:
int textStart() const;
int textLength() const;
- int lineNumber() const { return i; }
+ int lineNumber() const { return index; }
void draw(QPainter *p, const QPointF &point, const QTextLayout::FormatRange *selection = 0) const;
@@ -249,12 +249,12 @@ public:
#endif
private:
- QTextLine(int line, QTextEngine *e) : i(line), eng(e) {}
+ QTextLine(int line, QTextEngine *e) : index(line), eng(e) {}
void layout_helper(int numGlyphs);
friend class QTextLayout;
friend class QTextFragment;
- int i;
+ int index;
QTextEngine *eng;
};