Commit 7eb23886 authored by Sandro Andrade's avatar Sandro Andrade

Rename randomlySelectOptions to randomlySelectExerciseOptions

parent 2b5a548f
......@@ -49,7 +49,7 @@ public:
QJsonArray selectedExerciseOptions() const;
public Q_SLOTS:
virtual void randomlySelectOptions() = 0;
virtual void randomlySelectExerciseOptions() = 0;
Q_SIGNALS:
void currentExerciseChanged(QJsonObject newCurrentExercise);
......
......@@ -63,7 +63,7 @@ bool ExerciseController::initialize(Core *core)
return definitionsMerge & exercisesMerge;
}
void ExerciseController::randomlySelectOptions()
void ExerciseController::randomlySelectExerciseOptions()
{
while (!m_selectedExerciseOptions.isEmpty())
m_selectedExerciseOptions.removeFirst();
......
......@@ -51,7 +51,7 @@ public:
virtual QJsonArray exercises() const override;
public Q_SLOTS:
virtual void randomlySelectOptions();
virtual void randomlySelectExerciseOptions();
private:
bool mergeJsonFiles(const QString directoryName, QJsonObject &targetObject, bool applyDefinitionsFlag = false, QString commonKey = "", QString mergeKey = "");
......
......@@ -109,7 +109,7 @@ Item {
text: i18n("new question")
onClicked: {
exerciseView.state = "waitingForAnswer"
core.exerciseController.randomlySelectOptions()
core.exerciseController.randomlySelectExerciseOptions()
var selectedExerciseOptions = core.exerciseController.selectedExerciseOptions
core.soundBackend.prepareFromExerciseOptions(selectedExerciseOptions, "scale")
var newChosenExercises = [];
......
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