|
|
@ -245,7 +245,11 @@ UBTeacherBarWidget::~UBTeacherBarWidget() |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarWidget::onValueChanged() |
|
|
|
void UBTeacherBarWidget::onValueChanged() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if( mpTitle->text() == "") |
|
|
|
if( mpTitle->text() == "" && |
|
|
|
|
|
|
|
mpLinks->empty() && |
|
|
|
|
|
|
|
mpActions->empty() && |
|
|
|
|
|
|
|
mpDropMediaZone->empty() && |
|
|
|
|
|
|
|
mpComments->document()->toPlainText() == "") |
|
|
|
{ |
|
|
|
{ |
|
|
|
mIconToLeft = QPixmap(":images/teacher_open_disabled.png"); |
|
|
|
mIconToLeft = QPixmap(":images/teacher_open_disabled.png"); |
|
|
|
mIconToRight = QPixmap(":images/teacher_close_disabled.png"); |
|
|
|
mIconToRight = QPixmap(":images/teacher_close_disabled.png"); |
|
|
@ -291,6 +295,7 @@ void UBTeacherBarWidget::onLinkButton() |
|
|
|
mpLinks->addWidget(pUrl); |
|
|
|
mpLinks->addWidget(pUrl); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------------------------
|
|
|
|
UBTeacherStudentAction::UBTeacherStudentAction(QWidget *parent, const char *name):QWidget(parent) |
|
|
|
UBTeacherStudentAction::UBTeacherStudentAction(QWidget *parent, const char *name):QWidget(parent) |
|
|
|
, mpText(NULL) |
|
|
|
, mpText(NULL) |
|
|
|
, mpLayout(NULL) |
|
|
|
, mpLayout(NULL) |
|
|
@ -359,11 +364,14 @@ QString UBTeacherStudentAction::comboValue() |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString str; |
|
|
|
QString str; |
|
|
|
|
|
|
|
|
|
|
|
// TODO : Implement this method
|
|
|
|
if(NULL != mpCombo){ |
|
|
|
|
|
|
|
str = mpCombo->currentText(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return str; |
|
|
|
return str; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------------------------
|
|
|
|
UBTeacherBarDropMediaZone::UBTeacherBarDropMediaZone(QWidget *parent, const char *name):QWidget(parent) |
|
|
|
UBTeacherBarDropMediaZone::UBTeacherBarDropMediaZone(QWidget *parent, const char *name):QWidget(parent) |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
@ -385,6 +393,10 @@ UBTeacherBarDropMediaZone::~UBTeacherBarDropMediaZone() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool UBTeacherBarDropMediaZone::empty() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return mWidget->empty(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBTeacherBarDropMediaZone::dragEnterEvent(QDragEnterEvent *pEvent) |
|
|
|
void UBTeacherBarDropMediaZone::dragEnterEvent(QDragEnterEvent *pEvent) |
|
|
|
{ |
|
|
|
{ |
|
|
|