Changeset 0ac9690913 in tspsg for src/tspmodel.h


Ignore:
Timestamp:
Dec 7, 2009, 5:06:44 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
a218bf2cb2
Parents:
3b1caa32d0
Message:

+ Toolbar state and position is now saved and restored with Main Window state and position.

  • Made some small improvements to the code.
  • Fixed some errors in the documentation.
  • Made source code more "documentation friendly".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tspmodel.h

    r3b1caa32d0 r0ac9690913  
    4242        CTSPModel(QObject *parent = 0);
    4343        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);
    4949        quint16 numCities() const;
    5050        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);
    5555
    5656signals:
Note: See TracChangeset for help on using the changeset viewer.