Port to new connect api

Change-Id: If9948ced45095546f37f9f397b65f922dc925b6a
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Montel Laurent
2015-09-21 16:19:04 +02:00
committed by Laurent Montel
parent 451a03a4cb
commit 54eabfb0c1
3 changed files with 20 additions and 20 deletions

View File

@@ -181,7 +181,7 @@ void TextBrowserHelpViewer::addBackHistoryItems(QMenu *backMenu)
QAction *action = new QAction(backMenu);
action->setText(m_textBrowser->historyTitle(-i));
action->setData(-i);
connect(action, SIGNAL(triggered()), this, SLOT(goToHistoryItem()));
connect(action, &QAction::triggered, this, &TextBrowserHelpViewer::goToHistoryItem);
backMenu->addAction(action);
}
}
@@ -192,7 +192,7 @@ void TextBrowserHelpViewer::addForwardHistoryItems(QMenu *forwardMenu)
QAction *action = new QAction(forwardMenu);
action->setText(m_textBrowser->historyTitle(i));
action->setData(i);
connect(action, SIGNAL(triggered()), this, SLOT(goToHistoryItem()));
connect(action, &QAction::triggered, this, &TextBrowserHelpViewer::goToHistoryItem);
forwardMenu->addAction(action);
}
}