diff options
| author | bd <bdunaisky@umass.edu> | 2025-04-28 03:44:42 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-28 03:44:42 +0000 | 
| commit | 013a79547aa465872d0262b2f5c24e73f9556869 (patch) | |
| tree | 28cc8f2ea6e5aa1a74f328de8594b0ad5995fa66 /gui/storageview.cc | |
| parent | 5653b2a033e7a4173d2f178b5ce52384666d3d7b (diff) | |
| parent | 336faf3fd701aaf962613abd1ff0a69cbdf021ce (diff) | |
Merge pull request #69 from bdunahu/vector_ext
Vector ext
Diffstat (limited to 'gui/storageview.cc')
| -rw-r--r-- | gui/storageview.cc | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/gui/storageview.cc b/gui/storageview.cc index 2f444a9..60391f9 100644 --- a/gui/storageview.cc +++ b/gui/storageview.cc @@ -21,10 +21,11 @@  #include <QAbstractTableModel>  #include <QVector> -StorageView::StorageView(int rows, QObject *parent) +StorageView::StorageView(int rows, int columns, QObject *parent)  	: QAbstractTableModel(parent)  {  	this->r = rows; +	this->c = columns;  	this->d.resize(rows);  	for (auto &row : this->d)  		row.resize(LINE_SIZE, 0); @@ -32,7 +33,7 @@ StorageView::StorageView(int rows, QObject *parent)  int StorageView::rowCount(const QModelIndex &) const { return this->r; } -int StorageView::columnCount(const QModelIndex &) const { return LINE_SIZE; } +int StorageView::columnCount(const QModelIndex &) const { return this->c; }  QVariant StorageView::data(const QModelIndex &i, int role) const  { | 
