mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +00:00
26 lines
421 B
C++
26 lines
421 B
C++
#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
|