34 lines
782 B
C++
34 lines
782 B
C++
#ifndef ATTRIBUTEVIEW_H
|
|
#define ATTRIBUTEVIEW_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QTableView;
|
|
class AttributeTableModel;
|
|
class QVBoxLayout;
|
|
|
|
class AttributeView : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AttributeView(QWidget *parent = nullptr
|
|
, const QString& connection = ""
|
|
, const QString& modelID = ""
|
|
, const QString& groupID = ""
|
|
, const QString& tableName = "basic.attribute");
|
|
~AttributeView();
|
|
|
|
private:
|
|
QString m_connection;
|
|
QString m_modelID;
|
|
QString m_groupID;
|
|
QString m_attributeTable;
|
|
|
|
QTableView* m_tableView;
|
|
AttributeTableModel* m_attributeTableModel;
|
|
QVBoxLayout* m_vLayout;
|
|
};
|
|
|
|
#endif //ATTRIBUTEVIEW_H
|