From 835035a94df2a193bbec652c690c990fdc1cf55f Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 30 Sep 2008 23:21:22 +0000 Subject: [PATCH] forward the link activated signal; common one svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866468 --- widgets/label.cpp | 1 + widgets/label.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/widgets/label.cpp b/widgets/label.cpp index 52f73ad88..7080682db 100644 --- a/widgets/label.cpp +++ b/widgets/label.cpp @@ -87,6 +87,7 @@ Label::Label(QGraphicsWidget *parent) d(new LabelPrivate(this)) { QLabel* native = new QLabel; + connect(native, SIGNAL(linkActivated(QString)), this, SIGNAL(linkActivated(QString))); connect(Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(setPalette())); native->setAttribute(Qt::WA_NoSystemBackground); diff --git a/widgets/label.h b/widgets/label.h index e69f1fdd1..865673625 100644 --- a/widgets/label.h +++ b/widgets/label.h @@ -93,6 +93,9 @@ public: */ QLabel* nativeWidget() const; +Q_SIGNALS: + void linkActivated(const QString &link); + public Q_SLOTS: void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data);