forked from qt-creator/qt-creator
Port to new connect api
Change-Id: If9948ced45095546f37f9f397b65f922dc925b6a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Laurent Montel
parent
451a03a4cb
commit
54eabfb0c1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user