Add UI for DIDKIT.
This commit is contained in:
22
DIDKit/App/Model/PropertyTableModel.cpp
Normal file
22
DIDKit/App/Model/PropertyTableModel.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user