Commit ba9f3f89 authored by Laurent Montel's avatar Laurent Montel 😁

Port qSort

parent 34298f16
......@@ -94,7 +94,7 @@ void TopLevel::registerGameboard(const QString &menuText, const QString &board,
connect(t, SIGNAL(toggled(bool)), SLOT(changeGameboard()));
playgroundsGroup->addAction(t);
QList<QAction*> actionList = playgroundsGroup->actions();
qSort(actionList.begin(), actionList.end(), actionSorterByName);
std::sort(actionList.begin(), actionList.end(), actionSorterByName);
unplugActionList( QStringLiteral( "playgroundList" ) );
plugActionList( QStringLiteral( "playgroundList" ), actionList );
......@@ -114,7 +114,7 @@ void TopLevel::registerLanguage(const QString &code, const QString &soundFile, b
languagesGroup->addAction(t);
QList<QAction*> actionList = languagesGroup->actions();
actionList.removeAll(actionCollection()->action(QStringLiteral( "speech_no_sound" )));
qSort(actionList.begin(), actionList.end(), actionSorterByName);
std::sort(actionList.begin(), actionList.end(), actionSorterByName);
unplugActionList( QStringLiteral( "languagesList" ) );
plugActionList( QStringLiteral( "languagesList" ), actionList );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment