some work

This commit is contained in:
arcan1s
2014-09-18 21:57:59 +04:00
parent e64ca5ec08
commit 0b3832cc32
5 changed files with 18 additions and 9 deletions

View File

@ -26,7 +26,7 @@
CustomLabel::CustomLabel(AwesomeWidget *wid, const bool debugCmd)
: Plasma::Label(wid),
: QLabel(0),
widget(wid),
debug(debugCmd)
{
@ -49,7 +49,7 @@ void CustomLabel::setPopupEnabled(const bool state)
}
void CustomLabel::mousePressEvent(QGraphicsSceneMouseEvent *event)
void CustomLabel::mousePressEvent(QMouseEvent *event)
{
if (debug) qDebug() << PDEBUG;
if (debug) qDebug() << PDEBUG << ":" << "Get signal" << event->button();
@ -93,5 +93,5 @@ void CustomLabel::mousePressEvent(QGraphicsSceneMouseEvent *event)
widget->sendNotification(QString("system"), text);
}
emit(Plasma::Label::mousePressEvent(event));
emit(QLabel::mousePressEvent(event));
}