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

created the thumbnail on dnd from the board

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent 646684e57a
commit c1423f9b94
  1. 17
      src/domain/UBGraphicsSvgItem.cpp

@ -98,14 +98,17 @@ QVariant UBGraphicsSvgItem::itemChange(GraphicsItemChange change, const QVariant
void UBGraphicsSvgItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
if (Delegate()->mousePressEvent(event))
{
//NOOP
}
else
{
QMimeData* pMime = new QMimeData();
QPixmap pixmap = toPixmapItem()->pixmap();
pMime->setImageData(pixmap.toImage());
Delegate()->setMimeData(pMime);
qreal k = (qreal)pixmap.width() / 100.0;
QSize newSize((int)(pixmap.width() / k), (int)(pixmap.height() / k));
Delegate()->setDragPixmap(pixmap.scaled(newSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
if (!Delegate()->mousePressEvent(event))
QGraphicsSvgItem::mousePressEvent(event);
}
}

Loading…
Cancel
Save