Connect to correct slots
This commit is contained in:
parent
f49d27216e
commit
140de3f929
1 changed files with 2 additions and 2 deletions
|
@ -30,11 +30,11 @@ Window::Window(QWidget *parent) :
|
|||
quit_action = new QAction("Quit", this);
|
||||
quit_action->setShortcut(QKeySequence::Quit);
|
||||
QObject::connect(quit_action, &QAction::triggered,
|
||||
this, &Window::on_open);
|
||||
this, &Window::close);
|
||||
|
||||
about_action = new QAction("About", this);
|
||||
QObject::connect(about_action, &QAction::triggered,
|
||||
this, &Window::on_open);
|
||||
this, &Window::on_about);
|
||||
|
||||
auto file_menu = menuBar()->addMenu("File");
|
||||
file_menu->addAction(open_action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue