Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/bd2e393d63e936ce3a24d3ab98d2c94aee6ad730?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
12 additions and
7 deletions
src/domain/UBGraphicsDelegateFrame.cpp
src/domain/UBGraphicsPixmapItem.cpp
@ -308,9 +308,12 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
if ( ( qAbs ( width * scaleX ) ) < 2 * mFrameWidth ) {
if ( ( qAbs ( width * scaleX ) ) < 2 * mFrameWidth ) {
bool negative = ( scaleX < 0 ) ? true : false ;
bool negative = ( scaleX < 0 ) ? true : false ;
if ( negative ) {
if ( negative ) {
if ( mMirrorX )
scaleX = 2 * mFrameWidth / width ;
else
scaleX = - 2 * mFrameWidth / width ;
scaleX = - 2 * mFrameWidth / width ;
} else {
} else {
scaleX = 2 * mFrameWidth / width ;
scaleX = - 1 ;
}
}
}
}
mScaleX = scaleX ;
mScaleX = scaleX ;
@ -333,11 +336,13 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
if ( mDelegate - > isFlippable ( ) & & qAbs ( scaleY ) ! = 0 ) {
if ( mDelegate - > isFlippable ( ) & & qAbs ( scaleY ) ! = 0 ) {
if ( ( qAbs ( height * scaleY ) ) < 2 * mFrameWidth ) {
if ( ( qAbs ( height * scaleY ) ) < 2 * mFrameWidth ) {
bool negative = ( scaleY < 0 ) ? true : false ;
bool negative = ( scaleY < 0 ) ? true : false ;
//mMirrorY = (negative?mMirrorY:!mMirrorY);
if ( negative ) {
if ( negative ) {
if ( mMirrorY )
scaleY = 2 * mFrameWidth / width ;
else
scaleY = - 2 * mFrameWidth / width ;
scaleY = - 2 * mFrameWidth / width ;
} else {
} else {
scaleY = 2 * mFrameWidth / width ;
scaleY = - 1 ;
}
}
}
}
mScaleY = scaleY ;
mScaleY = scaleY ;
@ -29,10 +29,10 @@ UBGraphicsPixmapItem::UBGraphicsPixmapItem(QGraphicsItem* parent)
: QGraphicsPixmapItem ( parent )
: QGraphicsPixmapItem ( parent )
{
{
mDelegate = new UBGraphicsItemDelegate ( this , 0 , true , true ) ;
mDelegate = new UBGraphicsItemDelegate ( this , 0 , true , true ) ;
mDelegate - > init ( ) ;
//mDelegate->init();
// NOTE: Do not remove this code, I'm just doing a backup of my changes! thx..
// NOTE: Do not remove this code, I'm just doing a backup of my changes! thx..
//mDelegate->setFlippable(true);
mDelegate - > setFlippable ( true ) ;
setData ( UBGraphicsItemData : : ItemLayerType , UBItemLayerType : : Object ) ;
setData ( UBGraphicsItemData : : ItemLayerType , UBItemLayerType : : Object ) ;
setTransformationMode ( Qt : : SmoothTransformation ) ;
setTransformationMode ( Qt : : SmoothTransformation ) ;