Changeset 29 in tspsg-svn for trunk/src/tspmodel.cpp
- Timestamp:
- Jun 24, 2009, 6:54:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tspmodel.cpp
r27 r29 141 141 } 142 142 143 void 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 143 152 void CTSPModel::randomize() 144 153 {
Note: See TracChangeset
for help on using the changeset viewer.