X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fjourneymodel.h;h=639c6d4f2ed15b9e58306ab8de319596b898248b;hp=910821c389726c45890ac6af3ac22e8775942722;hb=refs%2Fheads%2Fmaster;hpb=4248fa25458b2d282d4e0ed4447e4bc7570046eb diff --git a/src/journeymodel.h b/src/journeymodel.h index 910821c..639c6d4 100644 --- a/src/journeymodel.h +++ b/src/journeymodel.h @@ -15,7 +15,7 @@ public: StartRole = Qt::UserRole + 1, DurationRole, OvertookRole, - OvertakenByRole + OvertakenByRole, }; QHash roleNames() const; @@ -39,6 +39,10 @@ public: Q_INVOKABLE static QDate epochToDate(quint64 epoch); Q_INVOKABLE static QTime epochToTime(quint64 epoch); Q_INVOKABLE static QDateTime epochToDateTime(quint64 epoch); + + QList const & getData() const; + + void sort(int column, Qt::SortOrder order); signals: // General signals void journeysChanged();