Changeset 0ac9690913 in tspsg for src/tspmodel.h
- Timestamp:
- Dec 7, 2009, 5:06:44 PM (14 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- a218bf2cb2
- Parents:
- 3b1caa32d0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tspmodel.h
r3b1caa32d0 r0ac9690913 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.