Small updates to qml files
[quandoparte] / application / stationlistproxymodel.h
index 9029ac7..5ab5260 100644 (file)
@@ -22,12 +22,16 @@ Boston, MA 02110-1301, USA.
 
 */
 
+#include <QtGlobal>
 #include <QSortFilterProxyModel>
 #include <QGeoCoordinate>
 #include <QGeoPositionInfoSource>
+#include <QMetaType>
 #include <QStringList>
 
+#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