Changeset 71 in tspsg-svn for trunk/src/tspmodel.h


Ignore:
Timestamp:
Dec 7, 2009, 5:06:44 PM (15 years ago)
Author:
laleppa
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
  • trunk/src/tspmodel.h

    r67 r71  
    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.