Changeset 78 in tspsg-svn for trunk/src/tspsolver.cpp


Ignore:
Timestamp:
Dec 18, 2009, 1:57:39 PM (14 years ago)
Author:
laleppa
Message:

+ Added an ability to disable showing of the solution steps' matrices in solution output.

  • Replaced Ok and Cancel buttons in SettingsDialog? with QButtonBox. Now the buttons conform the interface guidelines of the target platform.
  • Increased the allowed maximum number of cities to 50. Solution steps' matrices aren't shown by default if the number of cities in task is more than 15.
  • For WinCE the size of the toolbar buttons is now determined based on the device DPI instead of its resolution.
  • Open and save file dialogs are now using native dialogs where supported.
  • Reworked About dialog a little bit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tspsolver.cpp

    r77 r78  
    211211void CTSPSolver::cleanup()
    212212{
     213        QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
    213214        route.clear();
    214215        mayNotBeOptimal = false;
    215216        if (root != NULL)
    216217                deleteNode(root);
     218        QApplication::restoreOverrideCursor();
    217219}
    218220
    219221void CTSPSolver::deleteNode(SStep *&node)
    220222{
     223static int x;
     224        x++;
     225qDebug() << ">>>" << x;
    221226        if (node->plNode != NULL)
    222227                deleteNode(node->plNode);
     
    225230        delete node;
    226231        node = NULL;
     232qDebug() << "<<<" << x;
     233        x--;
    227234}
    228235
Note: See TracChangeset for help on using the changeset viewer.