Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
necrashter committed Sep 26, 2019
1 parent 071b5de commit 431935d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions include/Menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
class Menu: public QMenu
{
public:
Menu(const QString &title, QWidget *parent = nullptr):
QMenu(title,parent) {};
Menu(QWidget *parent = nullptr): QMenu(parent) {};
Menu(const QString &title, QWidget *parent = nullptr): QMenu(title,parent) {};
Menu(QWidget *parent = nullptr): QMenu(parent) {};

void keyReleaseEvent(QKeyEvent *event) override;
void keyReleaseEvent(QKeyEvent *event) override;
};

#endif
4 changes: 2 additions & 2 deletions src/gui/widgets/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

void Menu::keyReleaseEvent(QKeyEvent *event)
{
QKeyEvent e(*event);
QApplication::sendEvent(parentWidget(),&e);
QKeyEvent e(*event);
QApplication::sendEvent(parentWidget(),&e);
}

0 comments on commit 431935d

Please sign in to comment.