if (item != NULL && item->flags() & QGraphicsItem::ItemIsMovable) {
m_sceneClickPoint = e->scenePos();
m_selectedItem = item;
- kDebug() << "///////// ITEM TYPE: " << item->type();
+ kDebug() << "///////// ITEM TYPE: " << item->type();
if (item->type() == 8) {
QGraphicsTextItem *t = static_cast<QGraphicsTextItem *>(item);
if (t->textInteractionFlags() == Qt::TextEditorInteraction) {
QGraphicsScene::mousePressEvent(e);
}
- kDebug() << "////// MOUSE CLICK, RESIZE MODE: " << m_resizeMode;
+ kDebug() << "////// MOUSE CLICK, RESIZE MODE: " << m_resizeMode;
}
* inverted)
*/
int determinantH, determinantV;
+ // Check whether to resize or to just move the item(s)
switch (m_resizeMode) {
case TopLeft:
determinantV = (bottomRight.x() - newpoint.x()) * (topRight.y() - newpoint.y()) - (bottomRight.y() - newpoint.y()) * (topRight.x() - newpoint.x());