EditColumnTableModel, return typename for displayrole for type column and oid for edit value.
This commit is contained in:
parent
44358d198a
commit
387c664284
3 changed files with 22 additions and 8 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue