mirror-chatterino2/chatwidgetheaderbuttonlabel.cpp

22 lines
409 B
C++
Raw Normal View History

2017-01-15 16:38:30 +01:00
#include "chatwidgetheaderbuttonlabel.h"
ChatWidgetHeaderButtonLabel::ChatWidgetHeaderButtonLabel()
{
}
void
ChatWidgetHeaderButtonLabel::mousePressEvent(QMouseEvent *event)
{
if (event->button() == Qt::LeftButton) {
emit mouseDown();
}
}
void
ChatWidgetHeaderButtonLabel::mouseReleaseEvent(QMouseEvent *event)
{
if (event->button() == Qt::LeftButton) {
emit mouseUp();
}
}