mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
c457651c63
Make use of the mouseMove signal in SplitHeader for the stream uptime tooltip
29 lines
642 B
C++
29 lines
642 B
C++
#pragma once
|
|
|
|
#include <QFlags>
|
|
#include <QLabel>
|
|
#include <QMouseEvent>
|
|
#include <QWidget>
|
|
|
|
class SignalLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SignalLabel(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
|
|
~SignalLabel() override = default;
|
|
|
|
signals:
|
|
void mouseDoubleClick(QMouseEvent *ev);
|
|
|
|
void mouseDown();
|
|
void mouseUp();
|
|
void mouseMove(QMouseEvent *event);
|
|
|
|
protected:
|
|
void mouseDoubleClickEvent(QMouseEvent *ev) override;
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
|
void mouseMoveEvent(QMouseEvent *event) override;
|
|
};
|