preferencesAboutTextFull
shibakaneki 13 years ago
parent b994977227
commit 17be2c0050
  1. 4
      src/gui/UBTBPageEditWidget.cpp
  2. 2
      src/gui/UBTeacherBarDataMgr.h
  3. 2
      src/gui/UBTeacherBarWidget.cpp

@ -150,7 +150,7 @@ void UBTBPageEditWidget::onMediaDropped(const QString &url)
if("" != url){
QWidget* pMedia = mpMediaContainer->generateMediaWidget(url);
if(NULL != pMedia){
mpDataMgr->medias() << pMedia;
mpDataMgr->medias()->append(pMedia);
mpDataMgr->addMediaUrl(url);
mpMediaContainer->addWidget(pMedia);
}
@ -228,7 +228,7 @@ void UBTBPageEditWidget::clearFields()
}
mUrls.clear();
// TODO: clean the media?
mpMediaContainer->cleanMedias();
}

@ -54,7 +54,7 @@ public:
QVector<sAction>* actions(){return &mActionList;}
// Medias
QVector<QWidget*> medias(){return mMediaList;}
QVector<QWidget*>* medias(){return &mMediaList;}
void addMediaUrl(const QString& url){mMediaUrls << url;}
QStringList mediaUrls(){return mMediaUrls;}

@ -126,7 +126,7 @@ bool UBTeacherBarWidget::isEmpty()
return mData.pageTitle() == "" &&
mData.urls()->empty() &&
mData.actions()->empty() &&
mData.medias().empty() &&
mData.medias()->empty() &&
mData.comments() == "" &&
mData.sessionTarget() == "" &&
mData.sessionTitle() == "";

Loading…
Cancel
Save