mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
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:
committed by
Alejandro Martinez
parent
58cb8954eb
commit
e77b3ff4d0
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user