Changeset 71 in tspsg-svn for trunk/src/tspmodel.h
- Timestamp:
- Dec 7, 2009, 5:06:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tspmodel.h
r67 r71 42 42 CTSPModel(QObject *parent = 0); 43 43 void clear(); 44 int columnCount(const QModelIndex & ) const;45 QVariant data(const QModelIndex & , int) const;46 Qt::ItemFlags flags(const QModelIndex & ) const;47 QVariant headerData(int , Qt::Orientation, int) const;48 bool loadTask( QString);44 int columnCount(const QModelIndex &parent = QModelIndex()) const; 45 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; 46 Qt::ItemFlags flags(const QModelIndex &index) const; 47 QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; 48 bool loadTask(const QString &fname); 49 49 quint16 numCities() const; 50 50 void randomize(); 51 int rowCount(const QModelIndex & ) const;52 bool saveTask( QString);53 bool setData(const QModelIndex & , const QVariant &, int);54 void setNumCities(int );51 int rowCount(const QModelIndex &parent = QModelIndex()) const; 52 bool saveTask(const QString &fname); 53 bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole); 54 void setNumCities(int n); 55 55 56 56 signals:
Note: See TracChangeset
for help on using the changeset viewer.