All the detail tabs on the TablePage now update when the sort order
of the table list changes.
This commit is contained in:
parent
d4d8316917
commit
1ae9a1151a
5 changed files with 61 additions and 26 deletions
|
|
@ -19,7 +19,17 @@ PropertiesPage::PropertiesPage(QWidget *parent) : QSplitter(parent)
|
|||
|
||||
auto item_delegate = new PgLabItemDelegate(this);
|
||||
m_tableView->setItemDelegate(item_delegate);
|
||||
m_tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
}
|
||||
|
||||
|
||||
//property_model->setSourceModel(m_tablesModel);
|
||||
void PropertiesPage::setSourceModel(QAbstractItemModel *model)
|
||||
{
|
||||
m_propertyProxyModel->setSourceModel(model);
|
||||
}
|
||||
|
||||
|
||||
void PropertiesPage::setActiveRow(const QModelIndex &row)
|
||||
{
|
||||
m_propertyProxyModel->setActiveRow(row);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue