Changeset 17 in tspsg-svn for trunk/src/tspmodel.cpp
- Timestamp:
- Jun 15, 2009, 5:10:25 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 *. vcproj*1 *.idb 2 2 *.ncb 3 *.pdb 3 4 *.sln 4 5 *.suo 5 *.idb 6 *.pdb 7 ui_* 6 *.vcproj* 7 Makefile* 8 Win32 9 Windows Mobile* 10 debug 8 11 moc_* 9 12 qrc_* 10 tspsg11 Makefile*12 debug13 13 release 14 ui_*
-
- Property svn:ignore
-
trunk/src/tspmodel.cpp
r16 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 45 45 } 46 46 47 QVariant CTSPModel::headerData(int section, Qt::Orientation , int role) const47 QVariant CTSPModel::headerData(int section, Qt::Orientation orientation, int role) const 48 48 { 49 49 if (role == Qt::DisplayRole) 50 return trUtf8("Город %1").arg(section + 1); 50 if (orientation == Qt::Vertical) 51 return trUtf8("Город %1").arg(section + 1); 52 else 53 return trUtf8("%1").arg(section + 1); 51 54 return QVariant(); 52 55 } … … 143 146 emit dataChanged(index(0,0),index(nCities - 1,nCities - 1)); 144 147 } 145
Note: See TracChangeset
for help on using the changeset viewer.