Skip to content

Commit

Permalink
Use new Qt connect syntax (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantti authored Jun 21, 2024
1 parent f94ca1f commit 93af4b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void MainWindow::setupPresetsView()
{
ui->presetsTreeView->setModel(m_presetsModel);
ui->presetsTreeView->setEditTriggers(QAbstractItemView::NoEditTriggers);
connect(ui->presetsTreeView, SIGNAL(clicked(QModelIndex)), SLOT(handlePresetActivated(QModelIndex)));
connect(ui->presetsTreeView, &QTreeView::clicked, this, &MainWindow::handlePresetActivated);
}

void MainWindow::setupObjectInspector()
Expand All @@ -127,7 +127,7 @@ void MainWindow::setupObjectInspector()
void MainWindow::setupActions()
{
auto action = new QAction(tr("New"), this);
connect(action, SIGNAL(triggered(bool)), this, SLOT(createNew()));
connect(action, &QAction::triggered, this, &MainWindow::createNew);
ui->mainToolBar->addAction(action);
}

Expand Down

0 comments on commit 93af4b1

Please sign in to comment.