X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=src%2Fjourneymodel.h;h=639c6d4f2ed15b9e58306ab8de319596b898248b;hp=ded01840fd2425dd3b55664be88a91894c0ff95f;hb=54ab3ebfadf8cb258561a4641249da8c6469dc0f;hpb=5fc520bad80dccf9bf2e0f16552c9f2605417067 diff --git a/src/journeymodel.h b/src/journeymodel.h index ded0184..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; @@ -41,6 +41,8 @@ public: Q_INVOKABLE static QDateTime epochToDateTime(quint64 epoch); QList const & getData() const; + + void sort(int column, Qt::SortOrder order); signals: // General signals void journeysChanged();