Skip to content

Commit

Permalink
Now Editor::closeEvent follow LMMS coding conventions (function argum…
Browse files Browse the repository at this point in the history
…ent name)
  • Loading branch information
firewall1110 committed Sep 25, 2024
1 parent ccb241b commit b6f2290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/Editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Editor : public QMainWindow
DropToolBar * addDropToolBar(Qt::ToolBarArea whereToAdd, QString const & windowTitle);
DropToolBar * addDropToolBar(QWidget * parent, Qt::ToolBarArea whereToAdd, QString const & windowTitle);

void closeEvent( QCloseEvent * _ce ) override;
void closeEvent(QCloseEvent * event) override;
protected slots:
virtual void play() {}
virtual void record() {}
Expand Down
4 changes: 2 additions & 2 deletions src/gui/editors/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ QAction *Editor::playAction() const
return m_playAction;
}

void Editor::closeEvent( QCloseEvent * _ce )
void Editor::closeEvent(QCloseEvent * event)
{
if( parentWidget() )
{
Expand All @@ -151,7 +151,7 @@ void Editor::closeEvent( QCloseEvent * _ce )
hide();
}
getGUI()->mainWindow()->refocus();
_ce->ignore();
event->ignore();
}

DropToolBar::DropToolBar(QWidget* parent) : QToolBar(parent)
Expand Down

0 comments on commit b6f2290

Please sign in to comment.