summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 3aeec9d..fde5a0f 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -387,15 +387,12 @@ void SheMov::createActions(){
mPlaySelectedFSA = new QAction(tr("Play selected movies..."), this);
connect(mPlaySelectedFSA, SIGNAL(triggered()), mFSWidget, SLOT(playSelected()));
mOpenTimesFSAG = new QActionGroup(this);
- mOpenTimesFSMapper = new QSignalMapper(this);
for(int i = 2; i < 6; ++i){
QString actString = QString("Play %1 times...").arg(i);
QAction *playTimesA = new QAction(actString, this);
- mOpenTimesFSMapper->setMapping(playTimesA, i);
- connect(playTimesA, SIGNAL(triggered()), mOpenTimesFSMapper, SLOT(map()));
+ connect(playTimesA, &QAction::triggered, [=] { mFSWidget->playSelectedRepeat(i); });
mOpenTimesFSAG->addAction(playTimesA);
}
- connect(mOpenTimesFSMapper, SIGNAL(mapped(int)), mFSWidget, SLOT(playSelectedRepeat(int)));
mOpenTimesFSAG->addAction(createSeparator());
QString infiniteTimes = QString(tr("Play %1 times")).arg(QChar(0x221E)); // infinite
mPlaySelectedInfTimesA = new QAction(infiniteTimes, this);