Commit bc7cceda authored by Tim Beaulen's avatar Tim Beaulen

KActiveLabel -> QLabel


svn path=/trunk/KDE/kdemultimedia/juk/; revision=595688
parent d102816d
......@@ -237,6 +237,8 @@ TrackItem::TrackItem(NowPlaying *parent) :
m_label = new LinkLabel(this);
m_label->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::LinksAccessibleByKeyboard);
#warning We should potentially check on URL underlining.
/* m_label->setLinkUnderline(false); */
......@@ -244,7 +246,7 @@ TrackItem::TrackItem(NowPlaying *parent) :
layout->addWidget(m_label);
layout->addStretch();
connect(m_label, SIGNAL(urlClick(const QString &)), this,
connect(m_label, SIGNAL(linkActivated(const QString &)), this,
SLOT(slotOpenLink(const QString &)));
}
......
......@@ -21,7 +21,6 @@
#include <q3hbox.h>
#include <QLabel>
#include <qpointer.h>
//Added by qt3to4:
#include <QMouseEvent>
#include <QDragEnterEvent>
#include <Q3ValueList>
......@@ -117,11 +116,10 @@ private:
* A link label that doesn't automatically open Konqueror.
*/
#warning port KActiveLabel to QLabel and see where LinkLabel is used in Juk.
class LinkLabel : public KActiveLabel
class LinkLabel : public QLabel
{
public:
LinkLabel(QWidget *parent) : KActiveLabel(parent) {}
LinkLabel(QWidget *parent) : QLabel(parent) {}
virtual void openLink(const QString &) {}
};
......
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