Changeset 5354a01311 in tspsg for src/tspmodel.cpp
- Timestamp:
- Jun 15, 2009, 5:10:25 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 5fce561905
- Parents:
- bcfd415fe2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tspmodel.cpp
rbcfd415fe2 r5354a01311 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.