diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-01-06 16:05:06 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-06 19:37:42 -0800 |
commit | f1b90813cf2a76cd2f13344af8b240af46ed683f (patch) | |
tree | b504ff83a657faef7752a97f84aa9bd866b6e242 /qt-ui | |
parent | 858fe5588a559cc51893ff2f72db6141d814c259 (diff) | |
download | subsurface-f1b90813cf2a76cd2f13344af8b240af46ed683f.tar.gz |
Set the model on the table view, one more skeleton
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 8 | ||||
-rw-r--r-- | qt-ui/divelogimportdialog.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index ffe91fe9d..5f9d36543 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -167,6 +167,11 @@ int ColumnNameResult::columnCount(const QModelIndex &parent) const } +void ColumnNameResult::setColumnValues(QList<QStringList> columns) +{ + +} + DiveLogImportDialog::DiveLogImportDialog(QStringList *fn, QWidget *parent) : QDialog(parent), selector(true), ui(new Ui::DiveLogImportDialog) @@ -188,6 +193,9 @@ DiveLogImportDialog::DiveLogImportDialog(QStringList *fn, QWidget *parent) : QDi ColumnNameProvider *provider = new ColumnNameProvider(this); ui->avaliableColumns->setModel(provider); + ColumnNameResult *result = new ColumnNameResult(this); + ui->tableView->setModel(result); + /* manually import CSV file */ QShortcut *close = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this); connect(close, SIGNAL(activated()), this, SLOT(close())); diff --git a/qt-ui/divelogimportdialog.h b/qt-ui/divelogimportdialog.h index 7c472661a..06052f58b 100644 --- a/qt-ui/divelogimportdialog.h +++ b/qt-ui/divelogimportdialog.h @@ -36,6 +36,7 @@ public: QVariant data(const QModelIndex &index, int role) const; int rowCount(const QModelIndex &parent) const; int columnCount(const QModelIndex &parent) const; + void setColumnValues(QList<QStringList> columns); private: QList<QStringList> columnValues; QStringList columnNames; |