Merge remote-tracking branch 'origin/develop' into claudio-dev

preferencesAboutTextFull
Claudio Valerio 12 years ago
commit 2c7eda9c02
  1. 2
      resources/library/search/Audio Planete.wgs/css/basic.css
  2. 0
      resources/library/search/Audio Planete.wgs/images/down.png
  3. 0
      resources/library/search/Audio Planete.wgs/images/greySquare.png
  4. 0
      resources/library/search/Audio Planete.wgs/images/icon-close.png
  5. 0
      resources/library/search/Audio Planete.wgs/images/popupBack.png
  6. 0
      resources/library/search/Audio Planete.wgs/images/search.png
  7. 0
      resources/library/search/Audio Planete.wgs/images/search_app.png
  8. 0
      resources/library/search/Audio Planete.wgs/images/thumbnail_icon.png
  9. 0
      resources/library/search/Audio Planete.wgs/images/trgDown.png
  10. 0
      resources/library/search/Audio Planete.wgs/images/trgUp.png
  11. 0
      resources/library/search/Audio Planete.wgs/images/up.png
  12. 2
      resources/library/search/Audio Planete.wgs/index.html
  13. 0
      resources/library/search/Audio Planete.wgs/scripts/jquery-1.6.2.min.js
  14. 2
      resources/library/search/Flash Planete.wgs/css/basic.css
  15. 0
      resources/library/search/Flash Planete.wgs/images/down.png
  16. 0
      resources/library/search/Flash Planete.wgs/images/greySquare.png
  17. 0
      resources/library/search/Flash Planete.wgs/images/icon-close.png
  18. 0
      resources/library/search/Flash Planete.wgs/images/popupBack.png
  19. 0
      resources/library/search/Flash Planete.wgs/images/search.png
  20. 0
      resources/library/search/Flash Planete.wgs/images/search_app.png
  21. 0
      resources/library/search/Flash Planete.wgs/images/thumbnail_icon.png
  22. 0
      resources/library/search/Flash Planete.wgs/images/trgDown.png
  23. 0
      resources/library/search/Flash Planete.wgs/images/trgUp.png
  24. 0
      resources/library/search/Flash Planete.wgs/images/up.png
  25. 2
      resources/library/search/Flash Planete.wgs/index.html
  26. 0
      resources/library/search/Flash Planete.wgs/scripts/jquery-1.6.2.min.js
  27. 0
      resources/library/search/Google images.wgs/config.xml
  28. 2
      resources/library/search/Google images.wgs/css/basic.css
  29. 0
      resources/library/search/Google images.wgs/icon.png
  30. 0
      resources/library/search/Google images.wgs/icon.thumbnail.png
  31. 0
      resources/library/search/Google images.wgs/images/down.png
  32. 0
      resources/library/search/Google images.wgs/images/greySquare.png
  33. 0
      resources/library/search/Google images.wgs/images/icon-close.png
  34. 0
      resources/library/search/Google images.wgs/images/popupBack.png
  35. 0
      resources/library/search/Google images.wgs/images/search.png
  36. 0
      resources/library/search/Google images.wgs/images/search_app.png
  37. 0
      resources/library/search/Google images.wgs/images/trgDown.png
  38. 0
      resources/library/search/Google images.wgs/images/trgUp.png
  39. 0
      resources/library/search/Google images.wgs/images/up.png
  40. 0
      resources/library/search/Google images.wgs/index.html
  41. 0
      resources/library/search/Google images.wgs/locales/locales.js
  42. 0
      resources/library/search/Google images.wgs/scripts/jquery-1.6.2.min.js
  43. 0
      resources/library/search/Google images.wgs/select/jquery.selectBox-arrow.gif
  44. 0
      resources/library/search/Google images.wgs/select/jquery.selectBox.css
  45. 0
      resources/library/search/Google images.wgs/select/jquery.selectBox.js
  46. 0
      resources/library/search/Google images.wgs/select/jquery.selectBox.min.js
  47. 2
      resources/library/search/Image Planete.wgs/css/basic.css
  48. 2
      resources/library/search/Video Planete.wgs/css/basic.css
  49. 0
      resources/library/search/Video Planete.wgs/images/down.png
  50. 0
      resources/library/search/Video Planete.wgs/images/greySquare.png
  51. 0
      resources/library/search/Video Planete.wgs/images/icon-close.png
  52. 0
      resources/library/search/Video Planete.wgs/images/popupBack.png
  53. 0
      resources/library/search/Video Planete.wgs/images/search.png
  54. 0
      resources/library/search/Video Planete.wgs/images/search_app.png
  55. 0
      resources/library/search/Video Planete.wgs/images/thumbnail_icon.png
  56. 0
      resources/library/search/Video Planete.wgs/images/trgDown.png
  57. 0
      resources/library/search/Video Planete.wgs/images/trgUp.png
  58. 0
      resources/library/search/Video Planete.wgs/images/up.png
  59. 2
      resources/library/search/Video Planete.wgs/index.html
  60. 0
      resources/library/search/Video Planete.wgs/scripts/jquery-1.6.2.min.js
  61. 32
      src/board/UBBoardController.cpp
  62. 3
      src/board/UBBoardController.h
  63. 4
      src/desktop/UBDesktopPalette.cpp
  64. 5
      src/domain/UBGraphicsScene.h
  65. 2
      src/domain/UBItem.h
  66. 11
      src/gui/UBToolWidget.cpp
  67. 5
      src/tools/UBGraphicsTriangle.cpp

@ -73,7 +73,7 @@ a {
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
margin-top: 50px; margin-top: 50px;
margin-bottom: 50px; margin-bottom: 85px;
} }
.search{ .search{

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 214 B

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 931 B

After

Width:  |  Height:  |  Size: 931 B

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 475 B

Before

Width:  |  Height:  |  Size: 448 B

After

Width:  |  Height:  |  Size: 448 B

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -8,7 +8,7 @@
<script type="text/javascript"> <script type="text/javascript">
var category = "audio"; var category = "audio";
var thumbnails = false; var thumbnails = false;
var minHeight = 180; var minHeight = 177;
var minWidth = 150; var minWidth = 150;
var currentIndex = 0; var currentIndex = 0;

@ -73,7 +73,7 @@ a {
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
margin-top: 50px; margin-top: 50px;
margin-bottom: 50px; margin-bottom: 85px;
} }
.search{ .search{

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 214 B

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 931 B

After

Width:  |  Height:  |  Size: 931 B

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 475 B

Before

Width:  |  Height:  |  Size: 448 B

After

Width:  |  Height:  |  Size: 448 B

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -8,7 +8,7 @@
<script type="text/javascript"> <script type="text/javascript">
var category = "interactive"; var category = "interactive";
var thumbnails = false; var thumbnails = false;
var minHeight = 180; var minHeight = 177;
var minWidth = 150; var minWidth = 150;
var currentIndex = 0; var currentIndex = 0;

@ -73,7 +73,7 @@ a {
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
margin-top: 50px; margin-top: 50px;
margin-bottom: 50px; margin-bottom: 85px;
} }
.search{ .search{

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 214 B

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 931 B

After

Width:  |  Height:  |  Size: 931 B

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 475 B

Before

Width:  |  Height:  |  Size: 448 B

After

Width:  |  Height:  |  Size: 448 B

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 64 B

After

Width:  |  Height:  |  Size: 64 B

@ -73,7 +73,7 @@ a {
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
margin-top: 50px; margin-top: 50px;
margin-bottom: 50px; margin-bottom: 85px;
} }
.search{ .search{

@ -73,7 +73,7 @@ a {
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
margin-top: 50px; margin-top: 50px;
margin-bottom: 50px; margin-bottom: 85px;
} }
.search{ .search{

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 214 B

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 931 B

After

Width:  |  Height:  |  Size: 931 B

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 475 B

Before

Width:  |  Height:  |  Size: 448 B

After

Width:  |  Height:  |  Size: 448 B

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -8,7 +8,7 @@
<script type="text/javascript"> <script type="text/javascript">
var category = "video"; var category = "video";
var thumbnails = false; var thumbnails = false;
var minHeight = 180; var minHeight = 177;
var minWidth = 150; var minWidth = 150;
var currentIndex = 0; var currentIndex = 0;

@ -534,10 +534,12 @@ void UBBoardController::duplicateScene()
duplicateScene(mActiveSceneIndex); duplicateScene(mActiveSceneIndex);
} }
void UBBoardController::duplicateItem(UBItem *item) UBGraphicsItem *UBBoardController::duplicateItem(UBItem *item)
{ {
if (!item) if (!item)
return; return NULL;
UBGraphicsItem *retItem = NULL;
mLastCreatedItem = NULL; mLastCreatedItem = NULL;
@ -611,6 +613,7 @@ void UBBoardController::duplicateItem(UBItem *item)
case UBMimeType::Group: case UBMimeType::Group:
{ {
UBGraphicsGroupContainerItem* groupItem = dynamic_cast<UBGraphicsGroupContainerItem*>(item); UBGraphicsGroupContainerItem* groupItem = dynamic_cast<UBGraphicsGroupContainerItem*>(item);
UBGraphicsGroupContainerItem* duplicatedGroup = NULL;
if(groupItem){ if(groupItem){
QTransform groupTransform = groupItem->transform(); QTransform groupTransform = groupItem->transform();
groupItem->resetTransform(); groupItem->resetTransform();
@ -629,13 +632,13 @@ void UBBoardController::duplicateItem(UBItem *item)
if(!selItems.empty()){ if(!selItems.empty()){
// I don't like this solution but for now this is the only way I found. // I don't like this solution but for now this is the only way I found.
// Normally, at this state, only the duplicated group should be selected // Normally, at this state, only the duplicated group should be selected
UBGraphicsGroupContainerItem* duplicatedGroup = dynamic_cast<UBGraphicsGroupContainerItem*>(selItems.at(0)); duplicatedGroup = dynamic_cast<UBGraphicsGroupContainerItem*>(selItems.at(0));
if(NULL != duplicatedGroup){ if(NULL != duplicatedGroup){
duplicatedGroup->setTransform(groupTransform); duplicatedGroup->setTransform(groupTransform);
} }
} }
} }
return; retItem = dynamic_cast<UBGraphicsItem *>(duplicatedGroup);
break; break;
} }
@ -649,10 +652,13 @@ void UBBoardController::duplicateItem(UBItem *item)
mLastCreatedItem = gitem; mLastCreatedItem = gitem;
gitem->setSelected(true); gitem->setSelected(true);
} }
return; retItem = dynamic_cast<UBGraphicsItem *>(gitem);
}break; }break;
} }
if (retItem)
return retItem;
UBItem *createdItem = downloadFinished(true, sourceUrl, contentTypeHeader, pData, itemPos, QSize(itemSize.width(), itemSize.height()), false); UBItem *createdItem = downloadFinished(true, sourceUrl, contentTypeHeader, pData, itemPos, QSize(itemSize.width(), itemSize.height()), false);
if (createdItem) if (createdItem)
{ {
@ -664,7 +670,10 @@ void UBBoardController::duplicateItem(UBItem *item)
createdGitem->setPos(itemPos); createdGitem->setPos(itemPos);
mLastCreatedItem = dynamic_cast<QGraphicsItem*>(createdItem); mLastCreatedItem = dynamic_cast<QGraphicsItem*>(createdItem);
mLastCreatedItem->setSelected(true); mLastCreatedItem->setSelected(true);
retItem = dynamic_cast<UBGraphicsItem *>(createdItem);
} }
return retItem;
} }
void UBBoardController::deleteScene(int nIndex) void UBBoardController::deleteScene(int nIndex)
@ -2082,7 +2091,7 @@ UBGraphicsWidgetItem *UBBoardController::addW3cWidget(const QUrl &pUrl, const QP
QString snapshotPath = selectedDocument()->persistencePath() + "/" + UBPersistenceManager::widgetDirectory + "/" + struuid + ".png"; QString snapshotPath = selectedDocument()->persistencePath() + "/" + UBPersistenceManager::widgetDirectory + "/" + struuid + ".png";
w3cWidgetItem->setSnapshotPath(QUrl::fromLocalFile(snapshotPath)); w3cWidgetItem->setSnapshotPath(QUrl::fromLocalFile(snapshotPath));
UBGraphicsWidgetItem *tmpItem = dynamic_cast<UBGraphicsWidgetItem*>(w3cWidgetItem); UBGraphicsWidgetItem *tmpItem = dynamic_cast<UBGraphicsWidgetItem*>(w3cWidgetItem);
if (tmpItem) if (tmpItem && tmpItem->scene())
tmpItem->takeSnapshot().save(snapshotPath, "PNG"); tmpItem->takeSnapshot().save(snapshotPath, "PNG");
} }
@ -2295,17 +2304,24 @@ void UBBoardController::togglePodcast(bool checked)
UBPodcastController::instance()->toggleRecordingPalette(checked); UBPodcastController::instance()->toggleRecordingPalette(checked);
} }
void UBBoardController::moveGraphicsWidgetToControlView(UBGraphicsWidgetItem* graphicsWidget) void UBBoardController::moveGraphicsWidgetToControlView(UBGraphicsWidgetItem* graphicsWidget)
{ {
graphicsWidget->remove(); graphicsWidget->remove();
UBToolWidget *toolWidget = new UBToolWidget(graphicsWidget); mActiveScene->setURStackEnable(false);
UBGraphicsItem *toolW3C = duplicateItem(dynamic_cast<UBItem *>(graphicsWidget));
UBGraphicsWidgetItem *copyedGraphicsWidget = NULL;
if (UBGraphicsWidgetItem::Type == toolW3C->type())
copyedGraphicsWidget = static_cast<UBGraphicsWidgetItem *>(toolW3C);
UBToolWidget *toolWidget = new UBToolWidget(copyedGraphicsWidget);
mActiveScene->addItem(toolWidget); mActiveScene->addItem(toolWidget);
qreal ssf = 1 / UBApplication::boardController->systemScaleFactor(); qreal ssf = 1 / UBApplication::boardController->systemScaleFactor();
toolWidget->setScale(ssf); toolWidget->setScale(ssf);
toolWidget->setPos(graphicsWidget->scenePos()); toolWidget->setPos(graphicsWidget->scenePos());
mActiveScene->setURStackEnable(true);
} }

@ -40,6 +40,7 @@ class UBGraphicsAudioItem;
class UBGraphicsWidgetItem; class UBGraphicsWidgetItem;
class UBBoardPaletteManager; class UBBoardPaletteManager;
class UBItem; class UBItem;
class UBGraphicsItem;
class UBBoardController : public UBDocumentContainer class UBBoardController : public UBDocumentContainer
@ -158,7 +159,7 @@ class UBBoardController : public UBDocumentContainer
void moveSceneToIndex(int source, int target); void moveSceneToIndex(int source, int target);
void duplicateScene(int index); void duplicateScene(int index);
void duplicateItem(UBItem *item); UBGraphicsItem *duplicateItem(UBItem *item);
void deleteScene(int index); void deleteScene(int index);
bool cacheIsVisible() {return mCacheWidgetIsEnabled;} bool cacheIsVisible() {return mCacheWidgetIsEnabled;}

@ -23,8 +23,8 @@
UBDesktopPalette::UBDesktopPalette(QWidget *parent, UBRightPalette* _rightPalette) UBDesktopPalette::UBDesktopPalette(QWidget *parent, UBRightPalette* _rightPalette)
: UBActionPalette(Qt::TopLeftCorner, parent) : UBActionPalette(Qt::TopLeftCorner, parent)
, mShowHideAction(0) , mShowHideAction(NULL)
, mDisplaySelectAction(0) , mDisplaySelectAction(NULL)
, rightPalette(_rightPalette) , rightPalette(_rightPalette)
{ {
QList<QAction*> actions; QList<QAction*> actions;

@ -109,8 +109,9 @@ class UBGraphicsScene: public UBCoreGraphicsScene, public UBItem
}; };
// tmp stub for divide addings scene objects from undo mechanism implementation // tmp stub for divide addings scene objects from undo mechanism implementation
bool isURStackIsEnabled(){ return mUndoRedoStackEnabled;} void enableUndoRedoStack(){mUndoRedoStackEnabled = true;}
void enableUndoRedoStack(){mUndoRedoStackEnabled = true;} void setURStackEnable(bool enable){mUndoRedoStackEnabled = enable;}
bool isURStackIsEnabled(){return mUndoRedoStackEnabled;}
UBGraphicsScene(UBDocumentProxy *parent, bool enableUndoRedoStack = true); UBGraphicsScene(UBDocumentProxy *parent, bool enableUndoRedoStack = true);
virtual ~UBGraphicsScene(); virtual ~UBGraphicsScene();

@ -99,6 +99,8 @@ protected:
public: public:
virtual int type() const = 0;
inline UBGraphicsItemDelegate *Delegate() const { return mDelegate; } inline UBGraphicsItemDelegate *Delegate() const { return mDelegate; }
static void assignZValue(QGraphicsItem*, qreal value); static void assignZValue(QGraphicsItem*, qreal value);

@ -76,6 +76,15 @@ void UBToolWidget::initialize()
if(!sUnpinPixmap) if(!sUnpinPixmap)
sUnpinPixmap = new QPixmap(":/images/unpin.svg"); sUnpinPixmap = new QPixmap(":/images/unpin.svg");
UBGraphicsScene *wscene = dynamic_cast<UBGraphicsScene *>(mGraphicsWidgetItem->scene());
if (wscene)
{
wscene->removeItemFromDeletion(mGraphicsWidgetItem);
wscene->removeItem(mGraphicsWidgetItem);
}
mGraphicsWidgetItem->setParent(this);
QGraphicsLinearLayout *graphicsLayout = new QGraphicsLinearLayout(Qt::Vertical, this); QGraphicsLinearLayout *graphicsLayout = new QGraphicsLinearLayout(Qt::Vertical, this);
mFrameWidth = UBSettings::settings()->objectFrameWidth; mFrameWidth = UBSettings::settings()->objectFrameWidth;
@ -83,7 +92,7 @@ void UBToolWidget::initialize()
graphicsLayout->setContentsMargins(mContentMargin, mContentMargin, mContentMargin, mContentMargin); graphicsLayout->setContentsMargins(mContentMargin, mContentMargin, mContentMargin, mContentMargin);
setPreferredSize(mGraphicsWidgetItem->preferredWidth() + mContentMargin * 2, mGraphicsWidgetItem->preferredHeight() + mContentMargin * 2); setPreferredSize(mGraphicsWidgetItem->preferredWidth() + mContentMargin * 2, mGraphicsWidgetItem->preferredHeight() + mContentMargin * 2);
mGraphicsWebView = new QGraphicsWebView(); mGraphicsWebView = new QGraphicsWebView(this);
connect(mGraphicsWebView->page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(javaScriptWindowObjectCleared())); connect(mGraphicsWebView->page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(javaScriptWindowObjectCleared()));
mGraphicsWebView->load(mGraphicsWidgetItem->mainHtml()); mGraphicsWebView->load(mGraphicsWidgetItem->mainHtml());
graphicsLayout->addItem(mGraphicsWebView); graphicsLayout->addItem(mGraphicsWebView);

@ -596,7 +596,7 @@ QCursor UBGraphicsTriangle::flipCursor() const
void UBGraphicsTriangle::mousePressEvent(QGraphicsSceneMouseEvent *event) void UBGraphicsTriangle::mousePressEvent(QGraphicsSceneMouseEvent *event)
{ {
lastRect = rect().toRect(); lastRect = rect().toRect();
lastPos = transform().inverted().map(event->screenPos()); lastPos = sceneTransform().inverted().map(event->screenPos());
if (resize1Polygon().containsPoint(event->pos().toPoint(), Qt::OddEvenFill)) if (resize1Polygon().containsPoint(event->pos().toPoint(), Qt::OddEvenFill))
{ {
@ -636,7 +636,7 @@ void UBGraphicsTriangle::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
} }
else else
{ {
QPoint currPos = transform().inverted().map(event->screenPos()); QPoint currPos = sceneTransform().inverted().map(event->screenPos());
if (mResizing1) if (mResizing1)
{ {
@ -804,6 +804,7 @@ void UBGraphicsTriangle::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
void UBGraphicsTriangle::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) void UBGraphicsTriangle::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
{ {
mResizing1 = mResizing2 = mRotating = false;
mShowButtons = false; mShowButtons = false;
setCursor(Qt::ArrowCursor); setCursor(Qt::ArrowCursor);
mCloseSvgItem->setVisible(false); mCloseSvgItem->setVisible(false);

Loading…
Cancel
Save