Commit 17be2c00 authored by shibakaneki's avatar shibakaneki

backup

parent b9949772
...@@ -150,7 +150,7 @@ void UBTBPageEditWidget::onMediaDropped(const QString &url) ...@@ -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() ...@@ -228,7 +228,7 @@ void UBTBPageEditWidget::clearFields()
} }
mUrls.clear(); mUrls.clear();
// TODO: clean the media? mpMediaContainer->cleanMedias();
} }
......
...@@ -54,7 +54,7 @@ public: ...@@ -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() ...@@ -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() == "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment