Permalink
Browse files

Working on pull request comments

  • Loading branch information...
1 parent 43b3631 commit 2d9f1484cefbb54e1b348d05b4d358ddda8a52af @anlun anlun committed Jul 3, 2012
Showing with 8 additions and 13 deletions.
  1. +1 −1 plugins/plugins.pro
  2. +0 −2 qreal.pro
  3. +0 −5 qrgui/models/details/graphicalModel.cpp
  4. +7 −5 qrgui/umllib/nodeElement.cpp
View
@@ -4,7 +4,7 @@ SUBDIRS = \
# additionsEditor/additionsEditor.pro \
# android/android.pro \
# dragonDiagram/dragonDiagram.pro \
-# blockDiagram/blockDiagram.pro \
+ blockDiagram/blockDiagram.pro \
# bpel/bpel.pro \
# exterminatus/exterminatus.pro \
# hascol/hascol.pro \
View
@@ -1,3 +1 @@
-CONFIG += debug
-
include (qreal.pri)
@@ -234,16 +234,11 @@ void GraphicalModel::stackBefore(const QModelIndex &element, const QModelIndex &
return;
}
- qDebug() << "$$$" << element.parent();
-
if (beginMoveRows(element.parent(), element.row(), element.row(), element.parent(), sibling.row())) {
AbstractModelItem *parent = static_cast<AbstractModelItem *>(element.parent().internalPointer());
AbstractModelItem *item = static_cast<AbstractModelItem *>(element.internalPointer());
AbstractModelItem *siblingItem = static_cast<AbstractModelItem *>(sibling.internalPointer());
- qDebug() << "CCC" << element.parent().internalPointer();
- qDebug() << "CCC" << element.parent();
-
parent->stackBefore(item, siblingItem);
mApi.stackBefore(parent->id(), item->id(), siblingItem->id());
endMoveRows();
@@ -532,6 +532,8 @@ void NodeElement::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
// Determing parent using corner position, not mouse coordinates
QPointF newParentInnerPoint = event->scenePos();
/*
+ * AAAA!!! Who knows why is this code here????!!!
+ *
switch (mDragState) {
case TopLeft:
newParentInnerPoint = scenePos();
@@ -655,27 +657,27 @@ void NodeElement::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
}
arrangeLinks();
-
- //qDebug() << "A";
}
void NodeElement::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{
- //qDebug() << "B" << mId.toString();
-
if (event->button() == Qt::RightButton) {
event->accept();
return;
}
delUnusedLines();
/*
+ * This code may become necessary.
+ * Now it exists for experiments.
+ *
if (mElementImpl->minimizesToChildren()) {
resize(mContents);
}
+
+ mContents = mContents.normalized();
*/
- //mContents = mContents.normalized();
storeGeometry();
setVisibleEmbeddedLinkers(true);

0 comments on commit 2d9f148

Please sign in to comment.