[qet] [2325] diagramview add pixItem->setCursor(Qt::PointingHandCursor); and refresh |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2325
Author: scorpio810
Date: 2013-06-23 01:08:33 +0200 (Sun, 23 Jun 2013)
Log Message:
-----------
diagramview add pixItem->setCursor(Qt::PointingHandCursor); and refresh
Modified Paths:
--------------
branches/0.4/sources/diagramview.cpp
Modified: branches/0.4/sources/diagramview.cpp
===================================================================
--- branches/0.4/sources/diagramview.cpp 2013-06-22 19:55:52 UTC (rev 2324)
+++ branches/0.4/sources/diagramview.cpp 2013-06-22 23:08:33 UTC (rev 2325)
@@ -38,6 +38,7 @@
#include "qetmessagebox.h"
#include "qtextorientationspinboxwidget.h"
#include <QGraphicsPixmapItem>
+#include <QGraphicsSceneMouseEvent>
/**
@@ -1262,20 +1263,8 @@
QGraphicsPixmapItem *pixItem = new QGraphicsPixmapItem( QPixmap::fromImage(image_to_add_) );
pixItem->setFlag(QGraphicsItem::ItemIsMovable,true);
pixItem->setFlag(QGraphicsItem::ItemIsSelectable,true);
- pixItem->setFlag(QGraphicsItem::ItemIsPanel, true);
- pixItem->setPos(qrand()*500/RAND_MAX,qrand()*500/RAND_MAX);
+ pixItem->setCursor(Qt::PointingHandCursor);
scene ->addItem( pixItem );
-
-/*// cree un nouveau champ de texte
-IndependentTextItem *iti = new IndependentTextItem("_");
-
-// le place a la position pos en gerant l'annulation
-scene -> undoStack().push(new AddTextCommand(scene, iti, pos));
- adjustSceneRect();
-
- // emet le signal textAdded
-emit(textAdded(false));
- return(iti);*/
}
/**