Commit e584c2cf authored by shibakaneki's avatar shibakaneki

backup

parent b5dc5d1d
...@@ -721,28 +721,30 @@ UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(QWidget *parent, const char ...@@ -721,28 +721,30 @@ UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(QWidget *parent, const char
mpActionsLabel->setObjectName("UBTeacherBarPreviewSubtitle"); mpActionsLabel->setObjectName("UBTeacherBarPreviewSubtitle");
mActionLabelLayout.addWidget(mpActionsLabel, 0); mActionLabelLayout.addWidget(mpActionsLabel, 0);
mActionLabelLayout.addStretch(1); mActionLabelLayout.addStretch(1);
mLayout.addLayout(&mActionLabelLayout); mpActionsLabel->setVisible(false);
//mLayout.addLayout(&mActionLabelLayout);
// Media // Media
mpMediaLabel = new QLabel(tr("Medias"), this); mpMediaLabel = new QLabel(tr("Medias"), this);
mpMediaLabel->setObjectName("UBTeacherBarPreviewSubtitle"); mpMediaLabel->setObjectName("UBTeacherBarPreviewSubtitle");
mMediaLabelLayout.addWidget(mpMediaLabel, 0); mMediaLabelLayout.addWidget(mpMediaLabel, 0);
mMediaLabelLayout.addStretch(1); mMediaLabelLayout.addStretch(1);
mLayout.addLayout(&mMediaLabelLayout); mpMediaLabel->setVisible(false);
mLayout.addWidget(&mMediaViewer, 0); //mLayout.addLayout(&mMediaLabelLayout, 0);
mLayout.addWidget(&mMediaViewer, 1);
// Temporary stretch
mLayout.addStretch(1);
// Comments // Comments
mpCommentsLabel = new QLabel(tr("Comments"), this); mpCommentsLabel = new QLabel(tr("Comments"), this);
mpCommentsLabel->setObjectName("UBTeacherBarPreviewSubtitle"); mpCommentsLabel->setObjectName("UBTeacherBarPreviewSubtitle");
mCommentsLabelLayout.addWidget(mpCommentsLabel, 0); mCommentsLabelLayout.addWidget(mpCommentsLabel, 0);
mCommentsLabelLayout.addStretch(1); mCommentsLabelLayout.addStretch(1);
mLayout.addLayout(&mCommentsLabelLayout); //mLayout.addLayout(&mCommentsLabelLayout);
mpComments = new QLabel(this); mpComments = new QLabel(this);
mpComments->setWordWrap(true); mpComments->setWordWrap(true);
mLayout.addWidget(mpComments); mpCommentsLabel->setVisible(false);
mpComments->setVisible(false);
//mLayout.addWidget(mpComments);
// Edit button // Edit button
mpEditButton = new QPushButton(tr("Edit infos"), this); mpEditButton = new QPushButton(tr("Edit infos"), this);
......
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