Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9d66031f authored by Sebastian Sauer's avatar Sebastian Sauer

LinkLabel isn't needed && allow to wordwrap the title rather then to auto-grow the window

svn path=/trunk/KDE/kdemultimedia/juk/; revision=880224
parent 2b1a4380
......@@ -242,7 +242,8 @@ TrackItem::TrackItem(NowPlaying *parent) :
QVBoxLayout *layout = new QVBoxLayout(this);
m_label = new LinkLabel(this);
m_label = new QLabel(this);
m_label->setWordWrap(true);
m_label->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::LinksAccessibleByKeyboard);
......@@ -313,7 +314,7 @@ void TrackItem::slotUpdate()
////////////////////////////////////////////////////////////////////////////////
HistoryItem::HistoryItem(NowPlaying *parent) :
LinkLabel(parent),
QLabel(parent),
NowPlayingItem(parent)
{
setFixedHeight(parent->height() - parent->layout()->margin() * 2);
......
......@@ -107,17 +107,6 @@ private:
QPoint m_dragStart;
};
/**
* A link label that doesn't automatically open Konqueror.
*/
class LinkLabel : public QLabel
{
public:
LinkLabel(QWidget *parent) : QLabel(parent) {}
virtual void openLink(const QString &) {}
};
/**
* Show the text information on the current track and provides links to the
* album and artist of the currently playing item.
......@@ -137,14 +126,14 @@ private slots:
private:
FileHandle m_file;
LinkLabel *m_label;
QLabel *m_label;
};
/**
* Shows up to 10 items of history and links to those items.
*/
class HistoryItem : public LinkLabel, public NowPlayingItem
class HistoryItem : public QLabel, public NowPlayingItem
{
Q_OBJECT
......@@ -169,7 +158,7 @@ private:
};
QList<Item> m_history;
LinkLabel *m_label;
QLabel *m_label;
QTimer *m_timer;
FileHandle m_file;
};
......
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