First step in using HorizontalProxyModel to show selected row in properties table.
HorizontalProxyModel now inherits from QIdentityProxyModel which provides a more complete base implementation (maybe to much?) for now it seems to do what we want, forward relevant signals which the abstract base didn't. Issues: Properties table needs formatting and shows all rows as columns instead of values of a single row.
This commit is contained in:
parent
49f009bdf9
commit
3080523b0d
4 changed files with 16 additions and 7 deletions
|
|
@ -7,7 +7,7 @@
|
|||
#include "ResultTableModelUtil.h"
|
||||
#include "ColumnTableModel.h"
|
||||
#include "ConstraintModel.h"
|
||||
//#include "NamespaceFilterWidget.h"
|
||||
#include "HorizontalProxyModel.h"
|
||||
#include "IconColumnDelegate.h"
|
||||
#include "IndexModel.h"
|
||||
#include "SqlFormattingUtils.h"
|
||||
|
|
@ -53,6 +53,10 @@ TablesPage::TablesPage(MainWindow *parent)
|
|||
ui->indexesTable->setItemDelegate(new PgLabItemDelegate(ui->indexesTable));
|
||||
ui->indexesTable->setItemDelegateForColumn(0, delegate);
|
||||
|
||||
HorizontalProxyModel* proxy_model = new HorizontalProxyModel(this);
|
||||
proxy_model->setSourceModel(m_tablesModel);
|
||||
ui->tablePropertiesTable->setModel(proxy_model);
|
||||
|
||||
//m_namespaceFilterWidget = new NamespaceFilterWidget(this);
|
||||
//ui->verticalLayoutTableView->addWidget(m_namespaceFilterWidget);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue