forked from qt-creator/qt-creator
Various Plugins: Add context object into connections
Change-Id: I360677bebfef16a3233b3b8177cff6da57ec7c31 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -31,7 +31,7 @@ CtfStatisticsView::CtfStatisticsView(CtfStatisticsModel *model, QWidget *parent)
|
||||
setUniformRowHeights(true);
|
||||
setSortingEnabled(true);
|
||||
|
||||
connect(selectionModel(), &QItemSelectionModel::currentChanged,
|
||||
connect(selectionModel(), &QItemSelectionModel::currentChanged, this,
|
||||
[this] (const QModelIndex ¤t, const QModelIndex &previous)
|
||||
{
|
||||
Q_UNUSED(previous);
|
||||
|
||||
@@ -97,8 +97,7 @@ void CtfVisualizerTool::createViews()
|
||||
|
||||
m_statisticsView = new CtfStatisticsView(m_statisticsModel.get());
|
||||
m_statisticsView->setWindowTitle(Tr::tr("Statistics"));
|
||||
connect(m_statisticsView, &CtfStatisticsView::eventTypeSelected, [this] (QString title)
|
||||
{
|
||||
connect(m_statisticsView, &CtfStatisticsView::eventTypeSelected, this, [this](QString title) {
|
||||
int typeId = m_traceManager->getSelectionId(title.toStdString());
|
||||
m_traceView->selectByTypeId(typeId);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user