add mouseMove signal to SignalLabel

Make use of the mouseMove signal in SplitHeader for the stream uptime
tooltip
This commit is contained in:
Rasmus Karlsson 2018-03-30 14:46:29 +02:00 committed by fourtf
parent 1c64dea831
commit c457651c63
3 changed files with 3 additions and 0 deletions

View file

@ -30,5 +30,6 @@ void SignalLabel::mouseReleaseEvent(QMouseEvent *event)
void SignalLabel::mouseMoveEvent(QMouseEvent *event)
{
emit this->mouseMove(event);
event->ignore();
}

View file

@ -18,6 +18,7 @@ signals:
void mouseDown();
void mouseUp();
void mouseMove(QMouseEvent *event);
protected:
void mouseDoubleClickEvent(QMouseEvent *ev) override;

View file

@ -57,6 +57,7 @@ SplitHeader::SplitHeader(Split *_split)
title->setMouseTracking(true);
QObject::connect(this->titleLabel, &SignalLabel::mouseDoubleClick, this,
&SplitHeader::mouseDoubleClickEvent);
QObject::connect(this->titleLabel, &SignalLabel::mouseMove, this, &SplitHeader::mouseMoveEvent);
layout->addStretch(1);