mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
add mouseMove signal to SignalLabel
Make use of the mouseMove signal in SplitHeader for the stream uptime tooltip
This commit is contained in:
parent
1c64dea831
commit
c457651c63
|
@ -30,5 +30,6 @@ void SignalLabel::mouseReleaseEvent(QMouseEvent *event)
|
|||
|
||||
void SignalLabel::mouseMoveEvent(QMouseEvent *event)
|
||||
{
|
||||
emit this->mouseMove(event);
|
||||
event->ignore();
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ signals:
|
|||
|
||||
void mouseDown();
|
||||
void mouseUp();
|
||||
void mouseMove(QMouseEvent *event);
|
||||
|
||||
protected:
|
||||
void mouseDoubleClickEvent(QMouseEvent *ev) override;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue