File 0006-Don-t-suppress-html-tag-like-characters.patch of Package amarok
From 372d77b2fe833d1eb27b35732199dd6e28443de2 Mon Sep 17 00:00:00 2001
From: Mark Kretschmann <kretschmann@kde.org>
Date: Sat, 7 Sep 2013 16:02:52 +0200
Subject: [PATCH 1/1] Don't suppress html tag like characters.
Example: "MY<DSMBR" by Linkin Park was shown as "MY".
BUG: 324614
---
src/context/widgets/TextScrollingWidget.cpp | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/src/context/widgets/TextScrollingWidget.cpp b/src/context/widgets/TextScrollingWidget.cpp
index 6963915..b119a9d 100644
--- a/src/context/widgets/TextScrollingWidget.cpp
+++ b/src/context/widgets/TextScrollingWidget.cpp
@@ -15,6 +15,7 @@
****************************************************************************************/
#define DEBUG_PREFIX "TextScrollingWidget"
+
#include "TextScrollingWidget.h"
#include "core/support/Debug.h"
@@ -26,7 +27,6 @@
#include <QGraphicsSimpleTextItem>
#include <QGraphicsSceneHoverEvent>
#include <QPainter>
-#include <QTextDocument>
#include <QTimer>
#include <QPropertyAnimation>
@@ -81,22 +81,16 @@ public:
void setScrollingText( const QString &str )
{
- if( text != str )
- {
- doc.setHtml( str );
- text = doc.toPlainText();
- doc.clear();
- }
+ text = str;
}
void setText( const QString &str )
{
- doc.setHtml( str );
- text = doc.toPlainText();
+ text = str;
textItem->setText( text );
+
if( animation )
animation.data()->stop();
- doc.clear();
}
@@ -109,7 +103,6 @@ public:
Plasma::FrameSvg *textBackground; // background svg for text
QWeakPointer<QPropertyAnimation> animation; // scroll animation
QGraphicsSimpleTextItem *textItem;
- QTextDocument doc;
private:
TextScrollingWidget *const q_ptr;
--
1.8.4