// SPDX-FileCopyrightText: 2021 Nheko Contributors // // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include #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); } };