Commit 5758b0af authored by Scott Wheeler's avatar Scott Wheeler

Escape rich text before passing it on to QLabel.

svn path=/trunk/kdemultimedia/juk/; revision=184908
parent 8e33c743
......@@ -125,8 +125,6 @@ private:
void saveConfig();
void addImpl(const QString &file, Playlist *list);
static PlaylistSplitter *splitter;
PlaylistBox *playlistBox;
QWidgetStack *playlistStack;
TagEditor *editor;
......
......@@ -18,6 +18,7 @@
#include <kdebug.h>
#include <qevent.h>
#include <qstylesheet.h>
#include "statuslabel.h"
#include "playlistitem.h"
......@@ -47,9 +48,12 @@ void StatusLabel::setPlayingItem(PlaylistItem *item)
if(item) {
Playlist *p = static_cast<Playlist *>(item->listView());
if(p && p->playlistBoxItem()) {
QString label = p->playlistBoxItem()->text()
+ " / " + item->text(PlaylistItem::ArtistColumn)
+ " - <i>" + item->text(PlaylistItem::TrackColumn) + "</i>";
QString playlist = QStyleSheet::escape(p->playlistBoxItem()->text());
QString artist = QStyleSheet::escape(item->text(PlaylistItem::ArtistColumn));
QString track = QStyleSheet::escape(item->text(PlaylistItem::TrackColumn));
QString label = playlist + " / " + artist + " - <i>" + track + "</i>";
trackLabel->setText(label);
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment