|
|
@ -1,5 +1,6 @@ |
|
|
|
#include "core/UBApplication.h" |
|
|
|
#include "core/UBApplication.h" |
|
|
|
#include "customWidgets/UBGlobals.h" |
|
|
|
#include "customWidgets/UBGlobals.h" |
|
|
|
|
|
|
|
#include "board/UBBoardController.h" |
|
|
|
#include "frameworks/UBFileSystemUtils.h" |
|
|
|
#include "frameworks/UBFileSystemUtils.h" |
|
|
|
|
|
|
|
|
|
|
|
#include "UBTeacherBarPreviewWidget.h" |
|
|
|
#include "UBTeacherBarPreviewWidget.h" |
|
|
@ -84,9 +85,10 @@ UBActionPreview::UBActionPreview(QWidget *parent, const char *name):QWidget(pare |
|
|
|
mOwnerLayout.addWidget(mpOwner, 0); |
|
|
|
mOwnerLayout.addWidget(mpOwner, 0); |
|
|
|
mOwnerLayout.addStretch(1); |
|
|
|
mOwnerLayout.addStretch(1); |
|
|
|
mLayout.addLayout(&mOwnerLayout); |
|
|
|
mLayout.addLayout(&mOwnerLayout); |
|
|
|
mpContent = new QLabel(this); |
|
|
|
mpContent = new QTextEdit(this); |
|
|
|
|
|
|
|
mpContent->setReadOnly(true); |
|
|
|
mpContent->setObjectName("UBActionPreviewContent"); |
|
|
|
mpContent->setObjectName("UBActionPreviewContent"); |
|
|
|
mpContent->setWordWrap(true); |
|
|
|
//mpContent->setWordWrap(true);
|
|
|
|
mLayout.addWidget(mpContent); |
|
|
|
mLayout.addWidget(mpContent); |
|
|
|
setContentsMargins(-9, -9, -9, -9); |
|
|
|
setContentsMargins(-9, -9, -9, -9); |
|
|
|
} |
|
|
|
} |
|
|
@ -103,10 +105,10 @@ UBActionPreview::~UBActionPreview() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBActionPreview::setOwner(const QString &owner) |
|
|
|
void UBActionPreview::setOwner(int owner) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(NULL != mpOwner && NULL != mpContent){ |
|
|
|
if(NULL != mpOwner && NULL != mpContent){ |
|
|
|
switch(owner.toInt()){ |
|
|
|
switch(owner){ |
|
|
|
case eActionOwner_Teacher: |
|
|
|
case eActionOwner_Teacher: |
|
|
|
mpOwner->setText(tr("Teacher")); |
|
|
|
mpOwner->setText(tr("Teacher")); |
|
|
|
mpContent->setStyleSheet("background:lightblue; border:lightblue;"); |
|
|
|
mpContent->setStyleSheet("background:lightblue; border:lightblue;"); |
|
|
@ -124,6 +126,7 @@ void UBActionPreview::setContent(const QString &content) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(NULL != mpContent){ |
|
|
|
if(NULL != mpContent){ |
|
|
|
mpContent->setText(content); |
|
|
|
mpContent->setText(content); |
|
|
|
|
|
|
|
setMinimumHeight(mpOwner->height() + mpContent->height()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -136,19 +139,30 @@ UBTBPreviewContainer::UBTBPreviewContainer(QWidget *parent, const char *name):UB |
|
|
|
UBTBPreviewContainer::~UBTBPreviewContainer() |
|
|
|
UBTBPreviewContainer::~UBTBPreviewContainer() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
UBTBPreviewSeparator::UBTBPreviewSeparator(QWidget *parent, const char *name):QFrame(parent) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
setObjectName("UBTBSeparator"); |
|
|
|
|
|
|
|
setMinimumHeight(5); |
|
|
|
|
|
|
|
setMaximumHeight(5); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UBTBPreviewSeparator::~UBTBPreviewSeparator() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------
|
|
|
|
// ------------------------------------------------------------------------------------
|
|
|
|
UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(UBTeacherBarDataMgr* pDataMgr, QWidget *parent, const char *name):QWidget(parent) |
|
|
|
UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(UBTeacherBarDataMgr* pDataMgr, QWidget *parent, const char *name):QWidget(parent) |
|
|
|
, mpEditButton(NULL) |
|
|
|
, mpEditButton(NULL) |
|
|
|
|
|
|
|
, mpSessionTitle(NULL) |
|
|
|
, mpTitle(NULL) |
|
|
|
, mpTitle(NULL) |
|
|
|
, mpDuration(NULL) |
|
|
|
, mpTitleLabel(NULL) |
|
|
|
, mpActionsLabel(NULL) |
|
|
|
, mpPageNbrLabel(NULL) |
|
|
|
, mpMediaLabel(NULL) |
|
|
|
|
|
|
|
, mpCommentsLabel(NULL) |
|
|
|
|
|
|
|
, mpComments(NULL) |
|
|
|
|
|
|
|
, mpLinksLabel(NULL) |
|
|
|
|
|
|
|
, mpContentContainer(NULL) |
|
|
|
, mpContentContainer(NULL) |
|
|
|
|
|
|
|
, mpScheduleLabel(NULL) |
|
|
|
|
|
|
|
, mpLicenseLabel(NULL) |
|
|
|
{ |
|
|
|
{ |
|
|
|
setObjectName(name); |
|
|
|
setObjectName(name); |
|
|
|
mpDataMgr = pDataMgr; |
|
|
|
mpDataMgr = pDataMgr; |
|
|
@ -158,23 +172,45 @@ UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(UBTeacherBarDataMgr* pDataM |
|
|
|
setStyleSheet(UBApplication::globalStyleSheet()); |
|
|
|
setStyleSheet(UBApplication::globalStyleSheet()); |
|
|
|
|
|
|
|
|
|
|
|
// Build the Preview widget
|
|
|
|
// Build the Preview widget
|
|
|
|
// Title + duration
|
|
|
|
// Session Title
|
|
|
|
mpTitle = new QLabel(this); |
|
|
|
mTitleContainer.setLayout(&mTitleLayout); |
|
|
|
|
|
|
|
mpSessionTitle = new QLabel(this); |
|
|
|
|
|
|
|
mpSessionTitle->setText(tr("Session: ")); |
|
|
|
|
|
|
|
mpSessionTitle->setWordWrap(true); |
|
|
|
|
|
|
|
mpSessionTitle->setAlignment(Qt::AlignRight); |
|
|
|
|
|
|
|
mpSessionTitle->setObjectName("UBTBPreviewSessionTitle"); |
|
|
|
|
|
|
|
mLayout.addWidget(mpSessionTitle); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Title
|
|
|
|
|
|
|
|
mTitleContainer.setLayout(&mTitleLayout); |
|
|
|
|
|
|
|
mTitleLayout.setContentsMargins(0, 0, 0, 0); |
|
|
|
|
|
|
|
mpTitleLabel = new QLabel(&mTitleContainer); |
|
|
|
|
|
|
|
mpTitleLabel->setText(tr("Activity")); |
|
|
|
|
|
|
|
mpTitleLabel->setObjectName("UBTeacherBarPreviewSubtitle"); |
|
|
|
|
|
|
|
mTitleLayout.addWidget(mpTitleLabel, 0); |
|
|
|
|
|
|
|
mpTitle = new QLabel(&mTitleContainer); |
|
|
|
mpTitle->setObjectName("UBTeacherBarPreviewTitle"); |
|
|
|
mpTitle->setObjectName("UBTeacherBarPreviewTitle"); |
|
|
|
mpTitle->setWordWrap(true); |
|
|
|
mpTitle->setWordWrap(true); |
|
|
|
mpTitle->setAlignment(Qt::AlignCenter); |
|
|
|
mpTitle->setAlignment(Qt::AlignLeft); |
|
|
|
mpDuration = new QLabel(this); |
|
|
|
mTitleLayout.addWidget(mpTitle, 1); |
|
|
|
mTitleDurationLayout.addWidget(mpTitle, 0); |
|
|
|
mpPageNbrLabel = new QLabel(tr("Page n° "), &mTitleContainer); |
|
|
|
mTitleDurationLayout.addWidget(mpDuration, 1); |
|
|
|
mpPageNbrLabel->setAlignment(Qt::AlignRight); |
|
|
|
mLayout.addLayout(&mTitleDurationLayout, 0); |
|
|
|
mpPageNbrLabel->setObjectName("UBTBPreviewSessionTitle"); |
|
|
|
|
|
|
|
mTitleLayout.addWidget(mpPageNbrLabel); |
|
|
|
|
|
|
|
mTitleLayout.addWidget(&mTitleSeparator); |
|
|
|
|
|
|
|
mLayout.addWidget(&mTitleContainer); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Content
|
|
|
|
mpContentContainer = new UBTBPreviewContainer(this); |
|
|
|
mpContentContainer = new UBTBPreviewContainer(this); |
|
|
|
mLayout.addWidget(mpContentContainer, 1); |
|
|
|
mLayout.addWidget(mpContentContainer, 1); |
|
|
|
//mLayout.addWidget(&mMediaViewer, 1);
|
|
|
|
|
|
|
|
// The next line is disgusting. This is a quickfix that must be reworked later
|
|
|
|
|
|
|
|
mMediaViewer.setContentsMargins(-9, -9, -9, -9); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hideElements(); |
|
|
|
// License
|
|
|
|
|
|
|
|
mLayout.addWidget(&mLicenseSeparator); |
|
|
|
|
|
|
|
mpLicenseLabel = new QLabel(tr("License"), this); |
|
|
|
|
|
|
|
mpLicenseLabel->setObjectName("UBTeacherBarPreviewSubtitle"); |
|
|
|
|
|
|
|
mLayout.addWidget(mpLicenseLabel); |
|
|
|
|
|
|
|
// TODO : Add the license field here
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Edit button
|
|
|
|
// Edit button
|
|
|
|
mpEditButton = new QPushButton(tr("Edit infos"), this); |
|
|
|
mpEditButton = new QPushButton(tr("Edit infos"), this); |
|
|
@ -186,128 +222,121 @@ UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(UBTeacherBarDataMgr* pDataM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect(mpEditButton, SIGNAL(clicked()), this, SLOT(onEdit())); |
|
|
|
connect(mpEditButton, SIGNAL(clicked()), this, SLOT(onEdit())); |
|
|
|
|
|
|
|
connect(UBApplication::boardController, SIGNAL(activeSceneChanged()), this, SLOT(onActiveSceneChanged())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UBTeacherBarPreviewWidget::~UBTeacherBarPreviewWidget() |
|
|
|
UBTeacherBarPreviewWidget::~UBTeacherBarPreviewWidget() |
|
|
|
{ |
|
|
|
{ |
|
|
|
DELETEPTR(mpLinksLabel); |
|
|
|
|
|
|
|
DELETEPTR(mpComments); |
|
|
|
|
|
|
|
DELETEPTR(mpTitle); |
|
|
|
|
|
|
|
DELETEPTR(mpDuration); |
|
|
|
|
|
|
|
DELETEPTR(mpActionsLabel); |
|
|
|
|
|
|
|
DELETEPTR(mpMediaLabel); |
|
|
|
|
|
|
|
DELETEPTR(mpCommentsLabel); |
|
|
|
|
|
|
|
DELETEPTR(mpContentContainer); |
|
|
|
|
|
|
|
DELETEPTR(mpEditButton); |
|
|
|
DELETEPTR(mpEditButton); |
|
|
|
|
|
|
|
DELETEPTR(mpLicenseLabel); |
|
|
|
|
|
|
|
DELETEPTR(mpScheduleLabel); |
|
|
|
|
|
|
|
DELETEPTR(mpPageNbrLabel); |
|
|
|
|
|
|
|
DELETEPTR(mpTitle); |
|
|
|
|
|
|
|
DELETEPTR(mpTitleLabel); |
|
|
|
|
|
|
|
DELETEPTR(mpSessionTitle); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarPreviewWidget::onEdit() |
|
|
|
void UBTeacherBarPreviewWidget::onActiveSceneChanged() |
|
|
|
{ |
|
|
|
{ |
|
|
|
emit showEditMode(); |
|
|
|
mpPageNbrLabel->setText(tr("Page n° %0").arg(UBApplication::boardController->activeSceneIndex())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarPreviewWidget::setTitle(const QString &title) |
|
|
|
void UBTeacherBarPreviewWidget::onEdit() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(NULL != mpTitle){ |
|
|
|
emit showEditMode(); |
|
|
|
mpTitle->setText(title); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarPreviewWidget::setComments(const QString &comments) |
|
|
|
void UBTeacherBarPreviewWidget::updateFields() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if("" != comments){ |
|
|
|
// First, remove the previous elements
|
|
|
|
mWidgets.clear(); |
|
|
|
if(!mStoredWidgets.empty()){ |
|
|
|
mpComments->setText(comments); |
|
|
|
foreach(QWidget* pW, mStoredWidgets){ |
|
|
|
mpComments->setVisible(true); |
|
|
|
mpContentContainer->removeWidget(pW); |
|
|
|
mpCommentsLabel->setVisible(true); |
|
|
|
if( pW->objectName() == "UBActionPreview" || |
|
|
|
mWidgets << mpCommentsLabel; |
|
|
|
pW->objectName() == "UBLinkPreview" || |
|
|
|
mMediaViewer.loadWidgets(mWidgets, false); |
|
|
|
pW->objectName() == "UBCommentsPreview"){ |
|
|
|
mWidgets.clear(); |
|
|
|
// Here we delete all preview widget excepting the media because they are handled by the data manager
|
|
|
|
mWidgets << mpComments; |
|
|
|
delete pW; |
|
|
|
mMediaViewer.loadWidgets(mWidgets, true); |
|
|
|
pW = NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
mStoredWidgets.clear(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarPreviewWidget::clean() |
|
|
|
// Session Title
|
|
|
|
{ |
|
|
|
mpSessionTitle->setText(mpDataMgr->sessionTitle()); |
|
|
|
mMediaViewer.cleanMedia(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach(QWidget* eachWidget, mStoredWidgets){ |
|
|
|
// Page Title
|
|
|
|
delete eachWidget; |
|
|
|
if("" != mpDataMgr->pageTitle()){ |
|
|
|
eachWidget = NULL; |
|
|
|
mpTitle->setText(mpDataMgr->pageTitle()); |
|
|
|
|
|
|
|
mpPageNbrLabel->setText(tr("Page n° %0").arg(UBApplication::boardController->activeSceneIndex())); |
|
|
|
|
|
|
|
mTitleContainer.setVisible(true); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
mTitleContainer.setVisible(false); |
|
|
|
} |
|
|
|
} |
|
|
|
mStoredWidgets.clear(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hideElements(); |
|
|
|
// Actions
|
|
|
|
|
|
|
|
generateActions(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Media
|
|
|
|
|
|
|
|
generateMedias(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Links
|
|
|
|
|
|
|
|
generateLinks(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Comments
|
|
|
|
|
|
|
|
generateComments(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarPreviewWidget::hideElements() |
|
|
|
void UBTeacherBarPreviewWidget::clearFields() |
|
|
|
{ |
|
|
|
{ |
|
|
|
mpActionsLabel = new QLabel(tr("Actions"), this); |
|
|
|
|
|
|
|
mpActionsLabel->setObjectName("UBTeacherBarPreviewSubtitle"); |
|
|
|
} |
|
|
|
mpMediaLabel = new QLabel(tr("Medias"), this); |
|
|
|
|
|
|
|
mpMediaLabel->setObjectName("UBTeacherBarPreviewSubtitle"); |
|
|
|
void UBTeacherBarPreviewWidget::generateActions() |
|
|
|
mpCommentsLabel = new QLabel(tr("Comments"), this); |
|
|
|
|
|
|
|
mpCommentsLabel->setObjectName("UBTeacherBarPreviewSubtitle"); |
|
|
|
|
|
|
|
mpComments = new QLabel(this); |
|
|
|
|
|
|
|
mpComments->setWordWrap(true); |
|
|
|
|
|
|
|
mpComments->setObjectName("UBTeacherBarPreviewComments"); |
|
|
|
|
|
|
|
mpLinksLabel = new QLabel(tr("Links"), this); |
|
|
|
|
|
|
|
mpLinksLabel->setObjectName("UBTeacherBarPreviewSubtitle"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mpActionsLabel->setVisible(false); |
|
|
|
|
|
|
|
mpMediaLabel->setVisible(false); |
|
|
|
|
|
|
|
mpCommentsLabel->setVisible(false); |
|
|
|
|
|
|
|
mpComments->setVisible(false); |
|
|
|
|
|
|
|
mpLinksLabel->setVisible(false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarPreviewWidget::setActions(QStringList actions) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if(!actions.empty()){ |
|
|
|
if(!mpDataMgr->actions()->empty()){ |
|
|
|
mWidgets.clear(); |
|
|
|
foreach(sAction act, *mpDataMgr->actions()){ |
|
|
|
mpActionsLabel->setVisible(true); |
|
|
|
|
|
|
|
mWidgets << mpActionsLabel; |
|
|
|
|
|
|
|
mediaViewer()->loadWidgets(mWidgets,false); |
|
|
|
|
|
|
|
mWidgets.clear(); |
|
|
|
|
|
|
|
foreach(QString action, actions){ |
|
|
|
|
|
|
|
QStringList desc = action.split(';'); |
|
|
|
|
|
|
|
if(2 <= desc.size()){ |
|
|
|
|
|
|
|
QString owner = desc.at(0); |
|
|
|
|
|
|
|
QString act = desc.at(1); |
|
|
|
|
|
|
|
mpTmpAction = new UBActionPreview(this); |
|
|
|
mpTmpAction = new UBActionPreview(this); |
|
|
|
mpTmpAction->setOwner(owner); |
|
|
|
mpTmpAction->setOwner(act.type); |
|
|
|
mpTmpAction->setContent(act); |
|
|
|
mpTmpAction->setContent(act.content); |
|
|
|
mWidgets << mpTmpAction; |
|
|
|
mpContentContainer->addWidget(mpTmpAction); |
|
|
|
} |
|
|
|
mStoredWidgets << mpTmpAction; |
|
|
|
} |
|
|
|
} |
|
|
|
mMediaViewer.loadWidgets(mWidgets, true); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarPreviewWidget::setLinks(QStringList links) |
|
|
|
void UBTeacherBarPreviewWidget::generateMedias() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(!links.empty()){ |
|
|
|
foreach(QWidget* pMedia, *mpDataMgr->medias()){ |
|
|
|
mWidgets.clear(); |
|
|
|
if(NULL != pMedia){ |
|
|
|
mpLinksLabel->setVisible(true); |
|
|
|
mpContentContainer->addWidget(pMedia); |
|
|
|
mWidgets << mpLinksLabel; |
|
|
|
mStoredWidgets << pMedia; |
|
|
|
mMediaViewer.loadWidgets(mWidgets, false); |
|
|
|
|
|
|
|
mWidgets.clear(); |
|
|
|
|
|
|
|
foreach(QString link, links){ |
|
|
|
|
|
|
|
mpTmpLink = new QLabel(link, this); |
|
|
|
|
|
|
|
mpTmpLink->setOpenExternalLinks(true); |
|
|
|
|
|
|
|
mWidgets << mpTmpLink; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
mMediaViewer.loadWidgets(mWidgets, true); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarPreviewWidget::updateFields() |
|
|
|
void UBTeacherBarPreviewWidget::generateLinks() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if(!mpDataMgr->urls()->empty()){ |
|
|
|
|
|
|
|
foreach(sLink link, *mpDataMgr->urls()){ |
|
|
|
|
|
|
|
mpTmpLink = new QLabel(QString("<a href='%0'>%1</a>").arg(link.link).arg(link.title), this); |
|
|
|
|
|
|
|
mpTmpLink->setObjectName("UBLinkPreview"); |
|
|
|
|
|
|
|
mpContentContainer->addWidget(mpTmpLink); |
|
|
|
|
|
|
|
mStoredWidgets << mpTmpLink; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarPreviewWidget::clearFields() |
|
|
|
void UBTeacherBarPreviewWidget::generateComments() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if("" != mpDataMgr->comments()){ |
|
|
|
|
|
|
|
mpTmpComment = new QTextEdit(this); |
|
|
|
|
|
|
|
mpTmpComment->setObjectName("UBCommentPreview"); |
|
|
|
|
|
|
|
mpTmpComment->setPlainText(mpDataMgr->comments()); |
|
|
|
|
|
|
|
mpTmpComment->setReadOnly(true); |
|
|
|
|
|
|
|
mpContentContainer->addWidget(mpTmpComment); |
|
|
|
|
|
|
|
mStoredWidgets << mpTmpComment; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|