Changeset 899d1b8e15 in tspsg for src/tspmodel.cpp


Ignore:
Timestamp:
Jun 24, 2009, 6:54:10 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
ac4cb71650
Parents:
78282ec778
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
  • src/tspmodel.cpp

    r78282ec778 r899d1b8e15  
    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.