Replace deprecated QSignalMapper::mapped signalD

Fixes #3986

The QSignalMapper::mapped signal does not exist any more and
was replaced by mappedString, mappedInt, and mappedObject.
This patch adapts its usages and only transitions to
new style signal-slot connection syntax.
This commit is contained in:
Andreas Buhr
2021-07-29 17:05:18 +02:00
committed by Alejandro Martinez
parent 58cb8954eb
commit e77b3ff4d0
13 changed files with 22 additions and 22 deletions

View File

@@ -160,7 +160,7 @@ IntervalColumnChooser::IntervalColumnChooser(QList<QString>&logicalHeadings)
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::Tool);
clicked = new QSignalMapper(this); // maps each button click event
connect(clicked, SIGNAL(mapped(const QString &)), this, SLOT(buttonClicked(const QString &)));
connect(clicked, &QSignalMapper::mappedString, this, &IntervalColumnChooser::buttonClicked);
buttons = new QGridLayout(this);
buttons->setSpacing(0);