mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-19 03:54:07 +00:00
26 lines
478 B
C++
26 lines
478 B
C++
#ifndef MRUQMENU_HH
|
|
#define MRUQMENU_HH
|
|
|
|
#include <QMenu>
|
|
#include <QEvent>
|
|
|
|
// Detail: http://goldendict.org/forum/viewtopic.php?f=4&t=1176
|
|
// When ctrl during ctrl+tab released, a request to change current tab will be emitted.
|
|
class MRUQMenu: public QMenu
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MRUQMenu(const QString title, QWidget *parent = 0);
|
|
|
|
private:
|
|
void keyReleaseEvent (QKeyEvent * kev) override;
|
|
|
|
signals:
|
|
void requestTabChange(int index);
|
|
};
|
|
|
|
|
|
|
|
#endif // MRUQMENU_HH
|