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

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

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

Loading…
Cancel
Save