goldendict-ng/src/ui/mruqmenu.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
483 B
C++
Raw Normal View History

2011-11-02 23:37:50 +00:00
#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.
2011-11-02 23:37:50 +00:00
class MRUQMenu: public QMenu
{
Q_OBJECT
2011-11-02 23:37:50 +00:00
public:
explicit MRUQMenu( const QString title, QWidget * parent = 0 );
2011-11-02 23:37:50 +00:00
private:
void keyReleaseEvent( QKeyEvent * kev ) override;
2011-11-02 23:37:50 +00:00
signals:
void requestTabChange( int index );
2011-11-02 23:37:50 +00:00
};
#endif // MRUQMENU_HH