matrixion/src/ui/Menu.h
2018-09-08 14:55:30 +03:00

21 lines
317 B
C++

#pragma once
#include <QMenu>
#include "Config.h"
class Menu : public QMenu
{
Q_OBJECT
public:
Menu(QWidget *parent = nullptr)
: QMenu(parent){};
protected:
void leaveEvent(QEvent *e) override
{
hide();
QMenu::leaveEvent(e);
}
};