|
|
@ -204,12 +204,15 @@ QVector<tIDataStorage*> UBTeacherGuideEditionWidget::save(int pageIndex) |
|
|
|
data->name = "title"; |
|
|
|
data->name = "title"; |
|
|
|
data->type = eElementType_UNIQUE; |
|
|
|
data->type = eElementType_UNIQUE; |
|
|
|
data->attributes.insert("value",mpPageTitle->text()); |
|
|
|
data->attributes.insert("value",mpPageTitle->text()); |
|
|
|
|
|
|
|
if(mpPageTitle->text().length()){ |
|
|
|
result << data; |
|
|
|
result << data; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
data = new tIDataStorage(); |
|
|
|
data = new tIDataStorage(); |
|
|
|
data->name = "comment"; |
|
|
|
data->name = "comment"; |
|
|
|
data->type = eElementType_UNIQUE; |
|
|
|
data->type = eElementType_UNIQUE; |
|
|
|
data->attributes.insert("value",mpComment->text()); |
|
|
|
data->attributes.insert("value",mpComment->text()); |
|
|
|
|
|
|
|
if(mpComment->text().length()) |
|
|
|
result << data; |
|
|
|
result << data; |
|
|
|
|
|
|
|
|
|
|
|
QList<QTreeWidgetItem*> children = getChildrenList(mpAddAnActionItem); |
|
|
|
QList<QTreeWidgetItem*> children = getChildrenList(mpAddAnActionItem); |
|
|
|