]> git.sesse.net Git - kdenlive/commitdiff
(debug)
authorSimon A. Eugster <simon.eu@gmail.com>
Mon, 26 Jan 2009 21:04:29 +0000 (21:04 +0000)
committerSimon A. Eugster <simon.eu@gmail.com>
Mon, 26 Jan 2009 21:04:29 +0000 (21:04 +0000)
svn path=/branches/KDE4/; revision=2980

src/customtrackview.cpp

index de73f8c3ce4f76de0b976e90d0f893d54d60eec0..bd7fe6fb52e38c0624a6fc82f042e3de5dcc49aa 100644 (file)
@@ -618,6 +618,7 @@ void CustomTrackView::mousePressEvent(QMouseEvent * event) {
             } else {
                 // Select all items on all tracks after click position
                 selection = items(event->pos().x(), 1, sceneRect().width() - event->pos().x(), sceneRect().height());
+               kDebug() << "SELELCTING ELEMENTS WITHIN =" << event->pos().x() << "/" <<  1 << ", " << sceneRect().width() - event->pos().x() << "/" << sceneRect().height();
             }
             m_selectionGroup = new AbstractGroupItem(m_document->fps());
             scene()->addItem(m_selectionGroup);
@@ -627,9 +628,11 @@ void CustomTrackView::mousePressEvent(QMouseEvent * event) {
                     m_selectionGroup->addToGroup(selection.at(i));
                     selection.at(i)->setFlags(QGraphicsItem::ItemIsSelectable);
                 }
-            }
-            kDebug() << "SPACER TOOL: SELECTION GROUP IS " << m_selectionGroup->boundingRect().top() << "/" << m_selectionGroup->boundingRect().left() << "; " << m_selectionGroup->boundingRect().bottom() << "/" << m_selectionGroup->boundingRect().right();
+           }
+           kDebug() << "SPACER TOOL: SELECTION GROUP POSITION " << m_selectionGroup->pos().x() << "/" << m_selectionGroup->pos().y();
+            kDebug() << "SPACER TOOL: SELECTION GROUP RECT IS " << m_selectionGroup->boundingRect().top() << "/" << m_selectionGroup->boundingRect().left() << "; " << m_selectionGroup->boundingRect().bottom() << "/" << m_selectionGroup->boundingRect().right();
             QPointF top = m_selectionGroup->boundingRect().topLeft();
+           // Something goes wrong there
             m_selectionGroup->setPos(top);
             m_selectionGroup->translate(-top.x(), -top.y() + 1);
             kDebug() << "SPACER TOOL: SELECTION GROUP TRANSLATED TO " << m_selectionGroup->pos().x() << "/" << m_selectionGroup->pos().y();