Changeset 29 in tspsg-svn for trunk/src/tspmodel.cpp


Ignore:
Timestamp:
Jun 24, 2009, 6:54:10 PM (16 years ago)
Author:
laleppa
Message:

+ Selected application language is now saved and restored.
+ Added language selection entries to main menu.
+ On-the-fly language switching.
+ Loading corresponding Qt library language, if exists.

  • File/New? sets all table cells to zeros.
  • Translation updates to reflect recent changes.
  • Renamed language files from language names to language codes.
  • Renamed some slot to have unified signal/slot naming.
  • Printer settings are now persistant until application close.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tspmodel.cpp

    r27 r29  
    141141}
    142142
     143void CTSPModel::clear()
     144{
     145        for (int r = 0; r < nCities; r++)
     146                for (int c = 0; c < nCities; c++)
     147                        if (r != c)
     148                                table[r][c] = 0;
     149        emit dataChanged(index(0,0),index(nCities - 1,nCities - 1));
     150}
     151
    143152void CTSPModel::randomize()
    144153{
Note: See TracChangeset for help on using the changeset viewer.