mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-19 03:54:07 +00:00
b5349478cf
The next commit will add `.git-blame-ignore-revs` https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
25 lines
483 B
C++
25 lines
483 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
|