From e584c2cfd09f1cb91f6f4473c1cea1572617b9a1 Mon Sep 17 00:00:00 2001 From: shibakaneki Date: Fri, 6 Jan 2012 13:02:58 +0100 Subject: [PATCH] backup --- src/gui/UBTeacherBarWidget.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/gui/UBTeacherBarWidget.cpp b/src/gui/UBTeacherBarWidget.cpp index f4e14883..4c19586c 100644 --- a/src/gui/UBTeacherBarWidget.cpp +++ b/src/gui/UBTeacherBarWidget.cpp @@ -721,28 +721,30 @@ UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(QWidget *parent, const char mpActionsLabel->setObjectName("UBTeacherBarPreviewSubtitle"); mActionLabelLayout.addWidget(mpActionsLabel, 0); mActionLabelLayout.addStretch(1); - mLayout.addLayout(&mActionLabelLayout); + mpActionsLabel->setVisible(false); + //mLayout.addLayout(&mActionLabelLayout); // Media mpMediaLabel = new QLabel(tr("Medias"), this); mpMediaLabel->setObjectName("UBTeacherBarPreviewSubtitle"); mMediaLabelLayout.addWidget(mpMediaLabel, 0); mMediaLabelLayout.addStretch(1); - mLayout.addLayout(&mMediaLabelLayout); - mLayout.addWidget(&mMediaViewer, 0); + mpMediaLabel->setVisible(false); + //mLayout.addLayout(&mMediaLabelLayout, 0); + mLayout.addWidget(&mMediaViewer, 1); - // Temporary stretch - mLayout.addStretch(1); // Comments mpCommentsLabel = new QLabel(tr("Comments"), this); mpCommentsLabel->setObjectName("UBTeacherBarPreviewSubtitle"); mCommentsLabelLayout.addWidget(mpCommentsLabel, 0); mCommentsLabelLayout.addStretch(1); - mLayout.addLayout(&mCommentsLabelLayout); + //mLayout.addLayout(&mCommentsLabelLayout); mpComments = new QLabel(this); mpComments->setWordWrap(true); - mLayout.addWidget(mpComments); + mpCommentsLabel->setVisible(false); + mpComments->setVisible(false); + //mLayout.addWidget(mpComments); // Edit button mpEditButton = new QPushButton(tr("Edit infos"), this);