File: mruqmenu.hh

package info (click to toggle)
goldendict-webengine 23.02.05-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,148 kB
  • sloc: cpp: 58,537; javascript: 9,942; ansic: 9,242; xml: 41; makefile: 15; sh: 9
file content (25 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef MRUQMENU_HH
#define MRUQMENU_HH

#include <QMenu>
#include <QEvent>

//The only difference between this class and QMenu is that this class emits
//a signal when Ctrl button is released
class MRUQMenu: public QMenu
{
    Q_OBJECT

public:
    MRUQMenu(const QString title, QWidget *parent = 0);

private:
    bool eventFilter (QObject*, QEvent*);

    signals:
    void ctrlReleased();
};



#endif // MRUQMENU_HH