Added ghost image for gate placement
This commit is contained in:
parent
e81622f8f3
commit
edf6a0ad2b
11 changed files with 198 additions and 28 deletions
include
19
include/GhostLabel.hpp
Normal file
19
include/GhostLabel.hpp
Normal 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();
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue