]> git.siccegge.de Git - frida/frida.git/blobdiff - src/gui/widgets/CFGScene.cxx
Wrap long lines
[frida/frida.git] / src / gui / widgets / CFGScene.cxx
index 2c18c7bedc4871cdaed7b90906f45ff4be1c636f..271f30354eaf66aed3ba39f1fc77d7b3ac1c53b5 100644 (file)
@@ -36,7 +36,8 @@ void CFGScene::drawBackground(QPainter* painter, const QRectF & rect) {
  *                 source and destination block. Draw the edge along
  *                 the shorter side of that rectangle
  */
-void CFGScene::drawLine(QPainter* painter, BasicBlockWidget * from, BasicBlockWidget * to, int8_t side) {
+void CFGScene::drawLine(QPainter* painter, BasicBlockWidget * from, BasicBlockWidget * to,
+                        int8_t side) {
        QPointF from_p = from->getExits()[side+1] + QPointF(0, 20);
        QPointF to_p = to->getEntry() - QPointF(0, 20);
        if ((to_p - from_p).y() > 0) {
@@ -107,8 +108,10 @@ void CFGScene::spaceWidgets() {
                relevantRect.moveTo(widget->scenePos());
                relevantRect.adjust(-20, -20, 20, 20);
                for (QGraphicsItem * item : items(relevantRect)) {
-                       if (item == widget) continue;
-                       if (std::find(widgets.begin(), widgets.end(), item) == widgets.end()) continue;
+                       if (item == widget)
+                               continue;
+                       if (std::find(widgets.begin(), widgets.end(), item) == widgets.end())
+                               continue;
                        QRectF itemrect = item->boundingRect();
                        itemrect.moveTo(item->scenePos());
                        while (relevantRect.intersects(itemrect)) {