aboutsummaryrefslogtreecommitdiff
path: root/src/views/mlabelview_simple.cpp
diff options
context:
space:
mode:
authorPeter Penz <ppenz@openismus.com>2010-09-01 13:50:26 +0200
committerPeter Penz <ppenz@openismus.com>2010-09-02 14:15:27 +0200
commit83f53f92c76b9a9528ab2bdc2a8f31e72f4213c2 (patch)
tree10d33ef9108e31ed0f8843e034a405c7984e22d2 /src/views/mlabelview_simple.cpp
parent30b57ba03254c211e0cc5d418894db4d95b9da52 (diff)
Fixes: NB#182145 - MLabel does not display long rich text properly
RevBy: Sergiy Dubovik, Armin Berres Details: If the size of the rich text exceeds the maximum size for pixmaps of 2048x2048 pixels, the rich text will only partly be shown. The patch fixes this issue by using up to two pixmap-tiles, where each tile has the height of the display. If the rich text spans over more than two tiles, the currently invisible tile will be updated with the currently visible text. The update of the tile can be done in a quite short time, so that the jittering is very minimal. If there is no cache available at all for not even two tiles, the text will be drawn directly as fallback.
Diffstat (limited to 'src/views/mlabelview_simple.cpp')
-rw-r--r--src/views/mlabelview_simple.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/views/mlabelview_simple.cpp b/src/views/mlabelview_simple.cpp
index c69cadd7..2e42c49c 100644
--- a/src/views/mlabelview_simple.cpp
+++ b/src/views/mlabelview_simple.cpp
@@ -222,6 +222,11 @@ void MLabelViewSimple::longPressEvent(QGestureEvent *event, QTapAndHoldGesture*
event->ignore(gesture);
}
+void MLabelViewSimple::orientationChangeEvent(MOrientationChangeEvent *event)
+{
+ Q_UNUSED(event);
+}
+
void MLabelViewSimple::applyStyle()
{
}