26 lines
821 B
C++
26 lines
821 B
C++
|
|
#include "attributeView.h"
|
||
|
|
#include "attributeTableModel.h"
|
||
|
|
#include <QTableView>
|
||
|
|
#include <QVBoxLayout>
|
||
|
|
|
||
|
|
AttributeView::AttributeView(QWidget* parent, const QString& connection, const QString& modelID, const QString& groupID, const QString& tableName)
|
||
|
|
: QWidget(parent)
|
||
|
|
, m_connection(connection)
|
||
|
|
, m_modelID(modelID)
|
||
|
|
, m_groupID(groupID)
|
||
|
|
, m_attributeTable(tableName)
|
||
|
|
{
|
||
|
|
m_tableView = new QTableView(this);
|
||
|
|
m_attributeTableModel = new AttributeTableModel(this, m_connection, m_modelID, m_groupID, m_attributeTable);
|
||
|
|
m_tableView->setModel(m_attributeTableModel);
|
||
|
|
|
||
|
|
m_vLayout = new QVBoxLayout(this);
|
||
|
|
m_vLayout->setSpacing(0);
|
||
|
|
m_vLayout->setContentsMargins(0, 0, 0, 0);
|
||
|
|
m_vLayout->addWidget(m_tableView);
|
||
|
|
this->setLayout(m_vLayout);
|
||
|
|
}
|
||
|
|
|
||
|
|
AttributeView::~AttributeView()
|
||
|
|
{}
|