Changeset 110 in tspsg-svn for trunk/src/mainwindow.cpp


Ignore:
Timestamp:
Apr 28, 2010, 1:38:10 AM (15 years ago)
Author:
laleppa
Message:

+ Added ChangeLog?, Installation Guide and License pages to doxygen generated documentation.

  • Added city and separator parameters to CTSPSolver::getSortedPath() method to make path generation more flexible.
  • Fixed a bug when the solution graph wasn't drwan correctly in some situations.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mainwindow.cpp

    r109 r110  
    666666
    667667        cur.insertBlock(fmt_paragraph);
    668         cur.insertText("  " + solver.getSortedPath());
     668        cur.insertText("  " + solver.getSortedPath(tr("City %1")));
    669669
    670670        cur.insertBlock(fmt_paragraph);
     
    861861                pic.drawLine(QPointF(x, y - r), QPointF(r * 2.25, y - 2 * r));
    862862        } else if (nstep > 1) {
    863                 pic.drawLine(QPointF(x, y - r), QPointF((step->pNode->next == SStep::RightBranch) ? r * 3.5 : r, y - 2 * r));
     863                pic.drawLine(QPointF(x, y - r), QPointF((step->pNode->pNode->next == SStep::RightBranch) ? r * 3.5 : r, y - 2 * r));
    864864        }
    865865
Note: See TracChangeset for help on using the changeset viewer.