aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <[email protected]>2015-01-04 17:13:23 +0100
committerAndreas Cord-Landwehr <[email protected]>2015-01-04 17:13:23 +0100
commit9e68e5a312e78c8b0c5522d5473465fbe232f614 (patch)
tree20278a7147e2cb8cdb41a80ffdb5efe97a5a50c2
parent67aacc7408319c741524e2cffde2248da559da2b (diff)
Remove start training button.
Not needed anymore in new workflow.
-rw-r--r--src/qml/Trainer.qml17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/qml/Trainer.qml b/src/qml/Trainer.qml
index 2c3c954..dd51a6a 100644
--- a/src/qml/Trainer.qml
+++ b/src/qml/Trainer.qml
@@ -57,9 +57,6 @@ Item {
resourceManager: globalResourceManager
onLanguageSelected: {
trainingSession2.language = selectedLanguage
- if (selectedLanguage != null) {
- learner.setActiveGoal(Learner.Language, selectedLanguage.id)
- }
}
}
@@ -78,7 +75,7 @@ Item {
ColumnLayout {
ScrollView {
Layout.minimumWidth: 300
- Layout.minimumHeight: 700 - selectButton.height
+ Layout.minimumHeight: 700
ListView {
id: unitList
clip: true
@@ -93,21 +90,11 @@ Item {
onSelected : {
unitList.currentIndex = index
trainingSession2.unit = unit
+ trainingSession.createFromUnit(trainingSession2.unit)
}
}
}
}
-
- Button {
- id: selectButton
- anchors.horizontalCenter: parent.horizontalCenter
- iconName : "go-next-view"
- text: i18n("Start Training")
- enabled: trainingSession2.unit != null
- onClicked: {
- trainingSession.createFromUnit(trainingSession2.unit)
- }
- }
}
ColumnLayout {
CourseSwitcher {