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:
Jarek Kobus
2023-08-01 19:59:54 +02:00
parent 47fce17aa3
commit aa016cc5a7
17 changed files with 36 additions and 35 deletions

View File

@@ -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 &current, const QModelIndex &previous)
{
Q_UNUSED(previous);

View File

@@ -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);
});