Skip to content

Commit

Permalink
Issue BuildmLearn#46 Added titlebar and status bar to simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
ravirnjn88 committed Mar 7, 2015
1 parent 1e2e78f commit 09beab0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/templates/flashcard/flashcardsimulator.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>0</number>
</property>
<property name="margin">
<number>0</number>
</property>
Expand Down
3 changes: 3 additions & 0 deletions src/templates/learnspellings/learnspellingssimulator.ui
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<property name="spacing">
<number>0</number>
</property>
<property name="margin">
<number>0</number>
</property>
Expand Down
1 change: 1 addition & 0 deletions src/templates/mlearning/basicmlearningsimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include "templates/mlearning/basicmlearningeditor.h"
#include "core/templatecore.h"
#include "definitions/definitions.h"

#include <QDir>

Expand Down
3 changes: 3 additions & 0 deletions src/templates/mlearning/basicmlearningsimulator.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="margin">
<number>0</number>
</property>
Expand Down
6 changes: 3 additions & 3 deletions src/templates/quiz/quizsimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ bool QuizSimulator::startSimulation() {
}

m_ui->m_phoneWidget->setCurrentIndex(1);
m_ui->m_quizBar->setPixmap(QPixmap(APP_TEMPLATES_PATH + QDir::separator() +
"quiz" + QDir::separator() +
"QuizBar.png"));
return true;
}

Expand Down Expand Up @@ -154,9 +157,6 @@ void QuizSimulator::questionSubmitted() {
}

m_ui->m_phoneWidget->setCurrentIndex(current_index + 1);
m_ui->m_quizBar->setPixmap(QPixmap(APP_TEMPLATES_PATH + QDir::separator() +
"quiz" + QDir::separator() +
"QuizBar.png"));
}

void QuizSimulator::restart() {
Expand Down

0 comments on commit 09beab0

Please sign in to comment.