Sort scores based on dates not the entry date.
[scorecard] / src / table-model.h
index bb4f44a..5837843 100644 (file)
@@ -22,9 +22,9 @@ public:
     course = 0;
   }
   Qt::ItemFlags flags ( const QModelIndex & index );
-  void setScore(QList<Score *> &sList);
+  void setScore(QList<Score *> &sList, Score *score = 0);
   void setClub(QList<Club *> &cList);
-  Course *findCourse(QString &clubName, QString &courseName);
+  Course *findCourse(const QString &clubName, const QString &courseName);
   int rowCount(const QModelIndex & parent) const;
   int columnCount(const QModelIndex & parent) const;
   QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;