comparison src/metadataview.h @ 44:73e6b6b12412

(issue 1,2) Make the column used for the Timestamp value configurable If the column contains a number it is interpreted as seconds since epoch. Otherwise its a verbatim copy of the column string.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 May 2015 19:45:26 +0200
parents 0c05958d254c
children 28d5a77db9fb
comparison
equal deleted inserted replaced
43:ee696abaab99 44:73e6b6b12412
32 QString parseMetaData(const QString& fileName); 32 QString parseMetaData(const QString& fileName);
33 33
34 Q_SIGNALS: 34 Q_SIGNALS:
35 /**@brief emited when the selection changed. */ 35 /**@brief emited when the selection changed. */
36 void selectionChanged(const QString& pictureFile, int current, int max, 36 void selectionChanged(const QString& pictureFile, int current, int max,
37 const QDateTime& timestamp, int number); 37 const QString& timestamp, int number);
38 38
39 protected slots: 39 protected slots:
40 /** @brief internal slot to handle table view selection changes */ 40 /** @brief internal slot to handle table view selection changes */
41 void viewSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected); 41 void viewSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
42 42
61 61
62 protected: 62 protected:
63 QxtCsvModel *mCSVModel; 63 QxtCsvModel *mCSVModel;
64 QSortFilterProxyModel *mSortModel; 64 QSortFilterProxyModel *mSortModel;
65 QTableView *mView; 65 QTableView *mView;
66 int mDateColIdx;
66 }; 67 };
67 68
68 69
69 #endif // METADATAVIEW_H 70 #endif // METADATAVIEW_H
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)