|
|
|
@ -259,7 +259,6 @@ void UBTeacherBarWidget::saveContent() |
|
|
|
|
{ |
|
|
|
|
sTeacherBarInfos infos; |
|
|
|
|
infos.title = mpTitle->text(); |
|
|
|
|
qDebug() << "Title read: " << infos.title; |
|
|
|
|
infos.phasis = mpPhasis->currentIndex(); |
|
|
|
|
infos.Duration = mpDuration->currentIndex(); |
|
|
|
|
infos.material = mpEquipment->text(); |
|
|
|
@ -277,7 +276,6 @@ void UBTeacherBarWidget::loadContent() |
|
|
|
|
{ |
|
|
|
|
sTeacherBarInfos nextInfos = UBPersistenceManager::persistenceManager()->getTeacherBarInfos(UBApplication::boardController->activeDocument(), UBApplication::boardController->activeSceneIndex()); |
|
|
|
|
mpTitle->setText(nextInfos.title); |
|
|
|
|
qDebug() << "Title loaded: " << nextInfos.title << ", Title set: " << mpTitle->text(); |
|
|
|
|
mpPhasis->setCurrentIndex(nextInfos.phasis); |
|
|
|
|
mpDuration->setCurrentIndex(nextInfos.Duration); |
|
|
|
|
mpEquipment->setText(nextInfos.material); |
|
|
|
|