DigitalCircuit/include/GhostLabel.hpp
2020-12-01 16:11:45 +01:00

19 lines
294 B
C++

#pragma once
#include <qlabel.h>
class GhostLabel : public QLabel
{
public:
explicit GhostLabel(QWidget* parent) :
QLabel(parent)
{
setMouseTracking(true);
}
void mouseMoveEvent(QMouseEvent* event) override
{
// Ignore all mouse move events, who cares tbh
event->ignore();
}
};