Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/b2f7c0c46dba046e4f2d8e6118a4005dba5069bf?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
8 additions and
11 deletions
src/domain/UBGraphicsGroupContainerItem.cpp
src/domain/UBGraphicsItemDelegate.cpp
@ -84,23 +84,15 @@ void UBGraphicsGroupContainerItem::addToGroup(QGraphicsItem *item)
if ( ! UBGraphicsItem : : isLocked ( this ) & & UBGraphicsItem : : isLocked ( item ) ) {
Delegate ( ) - > setLocked ( true ) ;
}
/*
if ( data ( UBGraphicsItemData : : itemLayerType ) . toInt ( ) ! = UBItemLayerType : : Control
& & item - > data ( UBGraphicsItemData : : itemLayerType ) . toInt ( ) = = UBItemLayerType : : Control )
setData ( UBGraphicsItemData : : itemLayerType , UBItemLayerType : : Control ) ;
*/
//setData(UBGraphicsItemData::ItemLayerType, QVariant(UBItemLayerType::Control));
}
else {
Delegate ( ) - > setUBFlag ( GF_FLIPPABLE_ALL_AXIS , UBGraphicsItem : : isFlippable ( item ) ) ;
Delegate ( ) - > setUBFlag ( GF_REVOLVABLE , UBGraphicsItem : : isRotatable ( item ) ) ;
Delegate ( ) - > setLocked ( UBGraphicsItem : : isLocked ( item ) ) ;
setData ( UBGraphicsItemData : : ItemLayerType , QVariant ( UBItemLayerType : : Control ) ) ;
//setData(UBGraphicsItemData::itemLayerType, item->data(UBGraphicsItemData::itemLayerType));
}
qDebug ( ) < < item - > data ( UBGraphicsItemData : : itemLayerType ) ;
if ( item - > data ( UBGraphicsItemData : : ItemLayerType ) = = UBItemLayerType : : Control )
setData ( UBGraphicsItemData : : ItemLayerType , item - > data ( UBGraphicsItemData : : ItemLayerType ) ) ;
// COMBINE
bool ok ;
@ -287,7 +287,12 @@ QVariant UBGraphicsItemDelegate::itemChange(QGraphicsItem::GraphicsItemChange ch
}
} break ;
case QGraphicsItem : : ItemVisibleHasChanged :
{
bool shownOnDisplay = mDelegated - > data ( UBGraphicsItemData : : ItemLayerType ) . toInt ( ) ! = UBItemLayerType : : Control ;
showHide ( shownOnDisplay ) ;
break ;
}
case QGraphicsItem : : ItemPositionHasChanged :
case QGraphicsItem : : ItemTransformHasChanged :
case QGraphicsItem : : ItemZValueHasChanged :