Added ghost image for gate placement

This commit is contained in:
Robert 2020-12-01 16:11:45 +01:00
parent e81622f8f3
commit edf6a0ad2b
11 changed files with 198 additions and 28 deletions

19
include/GhostLabel.hpp Normal file
View file

@ -0,0 +1,19 @@
#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();
}
};