X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=application%2Fstationlistproxymodel.h;h=5ab5260e27859971fdb2eaaf115695eaf10ba5d7;hb=1d51d0c52219c8e80318b4ba0c5b68c389666311;hp=9029ac707ed477966c21ca76cbfbeb22e570145f;hpb=ee11ee140d825ff7fea74424f265d4a6c0133eeb;p=quandoparte diff --git a/application/stationlistproxymodel.h b/application/stationlistproxymodel.h index 9029ac7..5ab5260 100644 --- a/application/stationlistproxymodel.h +++ b/application/stationlistproxymodel.h @@ -22,12 +22,16 @@ Boston, MA 02110-1301, USA. */ +#include #include #include #include +#include #include +#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) QTM_USE_NAMESPACE +#endif class StationListProxyModel : public QSortFilterProxyModel { @@ -63,9 +67,12 @@ protected: virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; +private: + void forceSortingMode(SortingMode mode); + private slots: void updatePosition(const QGeoPositionInfo &update); - + void updateRecentStations(void); private: QString m_searchPattern; QGeoPositionInfoSource *positionInfoSource; @@ -75,4 +82,6 @@ private: bool m_filterRecentOnly; }; +Q_DECLARE_METATYPE(StationListProxyModel::SortingMode) + #endif // STATIONLISTPROXYMODEL_H