From 58e21a61606a3594be2a17f044342f7cb031c628 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 6 Jan 2015 16:30:59 -0200 Subject: Add the setColumnValues() method This method populates the model with a few lines of the CSV data to help the user to define what each column is. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/divelogimportdialog.h') diff --git a/qt-ui/divelogimportdialog.h b/qt-ui/divelogimportdialog.h index b5eaa906d..a2283906f 100644 --- a/qt-ui/divelogimportdialog.h +++ b/qt-ui/divelogimportdialog.h @@ -34,8 +34,8 @@ public: ColumnNameResult(QObject *parent); bool setData(const QModelIndex &index, const QVariant &value, int role); QVariant data(const QModelIndex &index, int role) const; - int rowCount(const QModelIndex &parent) const; - int columnCount(const QModelIndex &parent) const; + int rowCount(const QModelIndex &parent = QModelIndex()) const; + int columnCount(const QModelIndex &parent = QModelIndex()) const; void setColumnValues(QList columns); private: QList columnValues; -- cgit v1.2.3-70-g09d2