Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/60e3951ae22e535390471459c18a40831aface16?style=unified&whitespace=ignore-eol You should set ROOT_URL correctly, otherwise the web may not work correctly.

Tool widget position fixed.

preferencesAboutTextFull
Yimgo 13 years ago
parent 28bd956726
commit 60e3951ae2
  1. 2
      src/board/UBBoardController.cpp
  2. 2
      src/gui/UBToolWidget.cpp

@ -2048,7 +2048,7 @@ void UBBoardController::moveGraphicsWidgetToControlView(UBGraphicsWidgetItem* gr
mActiveScene->addItem(toolWidget);
qreal ssf = 1 / UBApplication::boardController->systemScaleFactor();
toolWidget->scale(ssf, ssf);
toolWidget->setScale(ssf);
toolWidget->setPos(graphicsWidget->scenePos());
}

@ -134,7 +134,7 @@ void UBToolWidget::setPos(const QPointF &point)
void UBToolWidget::setPos(qreal x, qreal y)
{
QGraphicsItem::setPos((x - mContentMargin)*scale(), (y - mContentMargin)*scale());
QGraphicsItem::setPos(x - mContentMargin * scale(), y - mContentMargin * scale());
}
void UBToolWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)

Loading…
Cancel
Save