Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/0a0fa21ec4381f8d581b8fa4e9a1628c6912ffc5?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
3 additions and
21 deletions
src/customWidgets/UBActionableWidget.h
src/customWidgets/UBWidgetList.cpp
@ -24,7 +24,6 @@ public:
void removeAction ( eAction act ) ;
void removeAllActions ( ) ;
void setActionsVisible ( bool bVisible ) ;
bool shouldClose ( QPoint p ) ;
signals :
void close ( QWidget * w ) ;
@ -32,7 +31,6 @@ signals:
protected :
void setActionsParent ( QWidget * parent ) ;
void unsetActionsParent ( ) ;
void paintEvent ( QPaintEvent * ev ) ;
QVector < eAction > mActions ;
QPushButton mCloseButtons ;
@ -143,28 +143,15 @@ void UBWidgetList::mousePressEvent(QMouseEvent *ev)
if ( mCanRemove ) {
QWidget * pWAt = widgetAt ( ev - > pos ( ) ) ;
if ( NULL ! = mpCurrentWidget ) {
if ( pWAt = = mpCurrentWidget ) {
// qDebug() << ev->x() << "," << ev->y();
// qDebug() << "mpCurrentWidget->pos() = " << mpCurrentWidget->pos().x() << "," << mpCurrentWidget->pos().y();
// qDebug() << "viewport position: " << visibleRegion().boundingRect().x() << "," << visibleRegion().boundingRect().y();
// QPoint p;
// p.setX(ev->x() - mpCurrentWidget->pos().x());
// p.setY(ev->y() - mpCurrentWidget->pos().y());
// if(mpCurrentWidget->shouldClose(p)){
// emit closeWidget(mpCurrentWidget);
// return;
// }
} else {
if ( pWAt ! = mpCurrentWidget ) {
mpCurrentWidget - > setActionsVisible ( false ) ;
update ( ) ;
}
}
mpCurrentWidget = dynamic_cast < UBActionableWidget * > ( pWAt ) ;
if ( NULL ! = mpCurrentWidget ) {
mpCurrentWidget - > setActionsVisible ( true ) ;
update ( ) ;
}
}
update ( ) ;
@ -240,6 +227,3 @@ bool UBWidgetList::empty()
{
return mWidgetInfo . empty ( ) ;
}
// TODO : - add onHover 'delete' button