Debian Codegraph @

Source/Core/DolphinQt/QtUtils/NonAutodismissibleMenu.h

raw symbols SCIP
1 // Copyright 2025 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <QMenu>
7
8 namespace QtUtils
9 {
10
11 // A menu widget based on QMenu that will not be automatically dismissed when one of its checkable
12 // actions are triggered.
13 class NonAutodismissibleMenu : public QMenu
14 {
15 public:
16 using QMenu::QMenu;
17
18 protected:
19 void mouseReleaseEvent(QMouseEvent* event) override;
20 };
21
22 } // namespace QtUtils