summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-02-04 12:18:42 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-02-09 10:37:17 (GMT)
commitb7082fec87305d61fe7021340a36d28bd4a33c37 (patch)
treeb2685393f0e2b8f9d2f6197eca5a33ba610e965f /src/gui
parentac60946777c55cf19ee0fc5ae1f60d3c75146e6f (diff)
downloadQt-b7082fec87305d61fe7021340a36d28bd4a33c37.zip
Qt-b7082fec87305d61fe7021340a36d28bd4a33c37.tar.gz
Qt-b7082fec87305d61fe7021340a36d28bd4a33c37.tar.bz2
Revert part of commit 7c1ab9b6a8
It was not properly merged in master because of conflicts, and we have now a public API for this Added QEXPECT_FAIL and opened QTBUG-17325
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/text/qtextdocumentlayout.cpp14
-rw-r--r--src/gui/text/qtextdocumentlayout_p.h5
2 files changed, 2 insertions, 17 deletions
diff --git a/src/gui/text/qtextdocumentlayout.cpp b/src/gui/text/qtextdocumentlayout.cpp
index 90c05da..838face 100644
--- a/src/gui/text/qtextdocumentlayout.cpp
+++ b/src/gui/text/qtextdocumentlayout.cpp
@@ -513,9 +513,6 @@ public:
qreal scaleToDevice(qreal value) const;
QFixed scaleToDevice(QFixed value) const;
-
- qreal lineH;
- QTextDocumentLayout::LineHeightMode lineHeightMode;
};
QTextDocumentLayoutPrivate::QTextDocumentLayoutPrivate()
@@ -523,9 +520,7 @@ QTextDocumentLayoutPrivate::QTextDocumentLayoutPrivate()
cursorWidth(1),
currentLazyLayoutPosition(-1),
lazyLayoutStepSize(1000),
- lastPageCount(-1),
- lineH(1),
- lineHeightMode(QTextDocumentLayout::MultiplyHeight)
+ lastPageCount(-1)
{
showLayoutProgress = true;
insideDocumentChange = false;
@@ -2746,13 +2741,6 @@ void QTextDocumentLayoutPrivate::layoutBlock(const QTextBlock &bl, int blockPosi
}
}
-void QTextDocumentLayout::setLineHeight(qreal lineH, QTextDocumentLayout::LineHeightMode mode = QTextDocumentLayout::MultiplyHeight)
-{
- Q_D(QTextDocumentLayout);
- d->lineH = lineH;
- d->lineHeightMode = mode;
-}
-
void QTextDocumentLayoutPrivate::floatMargins(const QFixed &y, const QTextLayoutStruct *layoutStruct,
QFixed *left, QFixed *right) const
{
diff --git a/src/gui/text/qtextdocumentlayout_p.h b/src/gui/text/qtextdocumentlayout_p.h
index efc408b..3c0383c 100644
--- a/src/gui/text/qtextdocumentlayout_p.h
+++ b/src/gui/text/qtextdocumentlayout_p.h
@@ -63,7 +63,7 @@ class QTextListFormat;
class QTextDocumentLayoutPrivate;
-class Q_GUI_EXPORT QTextDocumentLayout : public QAbstractTextDocumentLayout
+class Q_AUTOTEST_EXPORT QTextDocumentLayout : public QAbstractTextDocumentLayout
{
Q_DECLARE_PRIVATE(QTextDocumentLayout)
Q_OBJECT
@@ -109,9 +109,6 @@ protected:
void drawInlineObject(QPainter *p, const QRectF &rect, QTextInlineObject item,
int posInDocument, const QTextFormat &format);
virtual void timerEvent(QTimerEvent *e);
- enum LineHeightMode { MultiplyHeight, PixelHeight };
- void setLineHeight(qreal lineHeight, QTextDocumentLayout::LineHeightMode mode);
-
private:
QRectF doLayout(int from, int oldLength, int length);
void layoutFinished();