Port the code that actually parses the CSV to the new system

Change the QWidget based approach to the Model based approach, using the
result QStringList for finding if we have the depth or the time of some
specific column.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-01-06 18:12:48 -02:00 committed by Dirk Hohndel
parent d0a62e452b
commit 555fd979cb
2 changed files with 65 additions and 67 deletions

View file

@ -37,6 +37,7 @@ public:
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
void setColumnValues(QList<QStringList> columns);
QStringList result() const;
private:
QList<QStringList> columnValues;
QStringList columnNames;
@ -79,8 +80,6 @@ public:
private
slots:
void on_buttonBox_accepted();
void on_knownImports_currentIndexChanged(int index);
void unknownImports();
void loadFileContents();
private:
bool selector;