Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting https://git.osmesh.ru/MOS/OpenBoard/commit/dabaca53aef0496218085352b4f20871bcf0b727
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
9 additions and
7 deletions
src/domain/UBGraphicsDelegateFrame.cpp
src/domain/UBGraphicsItemTransformUndoCommand.h
src/domain/UBGraphicsScene.cpp
src/domain/UBGraphicsTextItemDelegate.cpp
@ -401,7 +401,7 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
qreal width = delegated ( ) - > boundingRect ( ) . width ( ) * mTotalScaleX ;
qreal height = delegated ( ) - > boundingRect ( ) . height ( ) * mTotalScaleY ;
if ( mOperationMode = = Scaling )
if ( mOperationMode = = Scaling )
{
if ( ! rotating ( ) )
{
@ -443,8 +443,8 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
mScaleY = scaleY ;
}
}
} else if ( resizingLeft ( ) | | resizingRight ( ) )
{
}
else if ( resizingLeft ( ) | | resizingRight ( ) ) {
if ( width ! = 0 ) {
qreal scaleX = 0.0 ;
if ( resizingLeft ( ) ) {
@ -30,7 +30,6 @@
# include <QtGui>
# include "UBResizableGraphicsItem.h"
# include "UBUndoCommand.h"
@ -257,9 +257,7 @@ qreal UBZLayerController::changeZLevelTo(QGraphicsItem *item, moveDestination de
foreach ( QGraphicsItem * iitem , sortedItems . values ( ) ) {
if ( iitem )
iitem ! = item
? qDebug ( ) < < " current value " < < iitem - > zValue ( )
: qDebug ( ) < < " marked value " < < QString : : number ( iitem - > zValue ( ) , ' f ' ) ;
iitem ! = item ? qDebug ( ) < < " current value " < < iitem - > zValue ( ) : qDebug ( ) < < " marked value " < < QString : : number ( iitem - > zValue ( ) , ' f ' ) ;
}
//Return new z value assigned to item
@ -195,6 +195,11 @@ void UBGraphicsTextItemDelegate::createControls()
button - > setFlag ( QGraphicsItem : : ItemIsSelectable , true ) ;
}
// Claudio: on changing the zvlaue the frame is updated updateSelectionFrame and
// the default value for the operation mode is set (scaling). This isn't the right
// mode for text so we call that here.
frame ( ) - > setOperationMode ( UBGraphicsDelegateFrame : : Resizing ) ;
}