aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktextedit_p_p.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-02-23 14:11:48 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-24 01:46:49 +0100
commit5fee1e79cc1c18acf58f9171a73a7525154a65cd (patch)
treecd6012dd79fa723cab96f498ab98879c0c27d415 /src/quick/items/qquicktextedit_p_p.h
parent8efc0ba05023654b6640a6050a4952becca4d68f (diff)
Use floating point types for position offsets and cursorRectangle.
Rounding to align painting to pixel boundaries is no longer necessary are largely removed. Correct the few instances remaining in TextEdit and TextInput. Change-Id: Ic6ec57092d74ec43b23d85cd8868e0190acc3e09 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'src/quick/items/qquicktextedit_p_p.h')
-rw-r--r--src/quick/items/qquicktextedit_p_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quick/items/qquicktextedit_p_p.h b/src/quick/items/qquicktextedit_p_p.h
index 1497c207ee..8ec589da29 100644
--- a/src/quick/items/qquicktextedit_p_p.h
+++ b/src/quick/items/qquicktextedit_p_p.h
@@ -69,8 +69,8 @@ class QQuickTextEditPrivate : public QQuickImplicitSizeItemPrivate
public:
QQuickTextEditPrivate()
: color(QRgb(0xFF000000)), selectionColor(QRgb(0xFF000080)), selectedTextColor(QRgb(0xFFFFFFFF))
- , textMargin(0.0), font(sourceFont), cursorComponent(0), cursor(0), document(0), control(0)
- , lastSelectionStart(0), lastSelectionEnd(0), lineCount(0), yoff(0)
+ , textMargin(0.0), yoff(0), font(sourceFont), cursorComponent(0), cursor(0), document(0), control(0)
+ , lastSelectionStart(0), lastSelectionEnd(0), lineCount(0)
, hAlign(QQuickTextEdit::AlignLeft), vAlign(QQuickTextEdit::AlignTop)
, format(QQuickTextEdit::PlainText), wrapMode(QQuickTextEdit::NoWrap)
, mouseSelectionMode(QQuickTextEdit::SelectCharacters), inputMethodHints(Qt::ImhNone)
@@ -98,9 +98,10 @@ public:
QColor selectionColor;
QColor selectedTextColor;
- QSize contentSize;
+ QSizeF contentSize;
qreal textMargin;
+ qreal yoff;
QString text;
QUrl baseUrl;
@@ -115,7 +116,6 @@ public:
int lastSelectionStart;
int lastSelectionEnd;
int lineCount;
- int yoff;
enum UpdateType {
UpdateNone,