Resolved an issue related to the teacherbar

preferencesAboutTextFull
shibakaneki 13 years ago
parent b447369b8f
commit cbe7747e95
  1. 1
      src/core/UBPersistenceManager.cpp
  2. 2
      src/gui/UBTeacherBarWidget.cpp

@ -1121,7 +1121,6 @@ sTeacherBarInfos UBPersistenceManager::getTeacherBarInfos(UBDocumentProxy* pDocu
QDomDocument domDoc; QDomDocument domDoc;
if(domDoc.setContent(f.readAll())) if(domDoc.setContent(f.readAll()))
{ {
qDebug() << domDoc.toString();
QDomElement rootElem = domDoc.documentElement(); QDomElement rootElem = domDoc.documentElement();
QDomNode teacherBarNode = rootElem.namedItem("teacherBar"); QDomNode teacherBarNode = rootElem.namedItem("teacherBar");

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

Loading…
Cancel
Save