Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/fd4852c6a43724f8083558da678437ec26b8d68f
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
19 additions and
2 deletions
src/domain/UBGraphicsScene.cpp
src/domain/UBGraphicsVectorItem.cpp
src/domain/UBGraphicsVectorItem.h
@ -1043,10 +1043,10 @@ void UBGraphicsScene::addVectorItemToCurrentStroke(UBGraphicsVectorItem* vectorI
vectorItem - > SetDelegate ( ) ;
mpLastVector = vectorItem ;
mAddedItems . insert ( vectorItem ) ;
mAddedItems . insert ( vectorItem - > StrokeGroup ( ) ) ;
// Here we add the item to the scene
addItem ( vectorItem ) ;
addItem ( vectorItem - > StrokeGroup ( ) ) ;
}
@ -59,6 +59,15 @@ void UBGraphicsVectorItem::initialize()
setFlag ( QGraphicsItem : : ItemIsSelectable , true ) ;
setFlag ( QGraphicsItem : : ItemIsMovable , true ) ;
setSublines ( ) ;
mStrokeGroup = new UBGraphicsStrokesGroup ( ) ;
mStrokeGroup - > setTransform ( this - > transform ( ) ) ;
UBGraphicsItem : : assignZValue ( mStrokeGroup , this - > zValue ( ) ) ;
if ( this - > transform ( ) . isIdentity ( ) )
this - > setTransform ( mStrokeGroup - > transform ( ) ) ;
mStrokeGroup - > addToGroup ( this ) ;
}
void UBGraphicsVectorItem : : setSublines ( )
@ -3,6 +3,7 @@
# include <QtGui>
# include "core/UB.h"
# include "domain/UBGraphicsStrokesGroup.h"
# include "UBItem.h"
class UBItem ;
@ -89,6 +90,11 @@ public:
return sublines ;
}
UBGraphicsStrokesGroup * StrokeGroup ( )
{
return mStrokeGroup ;
}
protected :
void paint ( QPainter * painter , const QStyleOptionGraphicsItem * option , QWidget * widget ) ;
virtual QVariant itemChange ( GraphicsItemChange change , const QVariant & value ) ;
@ -106,6 +112,8 @@ public:
QColor mColorOnLightBackground ;
QList < QGraphicsLineItem * > sublines ;
UBVectorStyle : : Enum style ;
UBGraphicsStrokesGroup * mStrokeGroup ;
} ;
# endif // UBGRAPHICSVECTORITEM_H