mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
21 lines
317 B
C++
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);
|
|
}
|
|
};
|