23 lines
567 B
C++
23 lines
567 B
C++
#include "PropertyTableModel.h"
|
|
#include <QStandardItem>
|
|
#include <QDebug>
|
|
|
|
PropertyTableModel::PropertyTableModel(QObject *parent)
|
|
: QStandardItemModel(parent)
|
|
{
|
|
setHorizontalHeaderLabels(QStringList()<<tr("Series Num")<<tr("Series Des")<<tr("Date")<<tr("Time")
|
|
<<tr("Modality")<<tr("Column")<<tr("Rows")<<tr("Image Count"));
|
|
}
|
|
|
|
PropertyTableModel::~PropertyTableModel()
|
|
{
|
|
|
|
}
|
|
|
|
void PropertyTableModel::setModelData(int aRow,int aColumn,const QString& aData)
|
|
{
|
|
for(int i=0;i< columnCount() ;++i)
|
|
setItem(aRow,aColumn,new QStandardItem(aData));
|
|
}
|
|
|