Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/0fb7cad9883006f92a64346139d6dd7ce0b404d0
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
21 additions and
2 deletions
src/customWidgets/UBWidgetList.cpp
src/customWidgets/UBWidgetList.h
src/gui/UBTeacherBarWidget.cpp
src/gui/UBTeacherBarWidget.h
@ -155,5 +155,10 @@ void UBWidgetList::setEmptyText(const QString &text)
}
}
bool UBWidgetList : : empty ( )
{
return mWidgets . empty ( ) ;
}
// TODO : - add onHover 'delete' button
@ -27,6 +27,7 @@ public:
void setMargin ( int margin ) ;
void setEmptyText ( const QString & text ) ;
int margin ( ) ;
bool empty ( ) ;
protected :
void resizeEvent ( QResizeEvent * ev ) ;
@ -245,7 +245,11 @@ UBTeacherBarWidget::~UBTeacherBarWidget()
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 " ) ;
mIconToRight = QPixmap ( " :images/teacher_close_disabled.png " ) ;
@ -291,6 +295,7 @@ void UBTeacherBarWidget::onLinkButton()
mpLinks - > addWidget ( pUrl ) ;
}
// ---------------------------------------------------------------------------------------------
UBTeacherStudentAction : : UBTeacherStudentAction ( QWidget * parent , const char * name ) : QWidget ( parent )
, mpText ( NULL )
, mpLayout ( NULL )
@ -359,11 +364,14 @@ QString UBTeacherStudentAction::comboValue()
{
QString str ;
// TODO : Implement this method
if ( NULL ! = mpCombo ) {
str = mpCombo - > currentText ( ) ;
}
return str ;
}
// ---------------------------------------------------------------------------------------------
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 )
{
@ -45,6 +45,7 @@ class UBTeacherBarDropMediaZone : public QWidget
public :
UBTeacherBarDropMediaZone ( QWidget * parent = 0 , const char * name = " UBTeacherBarDropMediaZone " ) ;
~ UBTeacherBarDropMediaZone ( ) ;
bool empty ( ) ;
private :
QList < QWidget * > mWidgetList ;