EditColumnTableModel, return typename for displayrole for type column and oid for edit value.

This commit is contained in:
eelke 2018-12-16 09:35:57 +01:00
parent 44358d198a
commit 387c664284
3 changed files with 22 additions and 8 deletions

View file

@ -22,7 +22,7 @@ EditTableWidget::EditTableWidget(std::shared_ptr<OpenDatabase> database, QWidget
mainLayout->addWidget(table);
setLayout(mainLayout);
auto model = new EditColumnTableModel(this);
auto model = new EditColumnTableModel(database->catalog(), this);
table->setModel(model);
table->setItemDelegate(new PgLabItemDelegate(this));