chore: allow dragging focus overlay
This commit is contained in:
@@ -26,9 +26,18 @@ private slots:
|
||||
void onResetButtonClicked();
|
||||
void onEndButtonClicked();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||
|
||||
private:
|
||||
Ui::FocusOverlay *ui;
|
||||
void positionAtBottomCenter();
|
||||
|
||||
// For dragging
|
||||
bool m_dragging;
|
||||
QPoint m_dragStartPosition;
|
||||
};
|
||||
|
||||
#endif // FOCUSOVERLAY_H
|
||||
|
||||
Reference in New Issue
Block a user