All the detail tabs on the TablePage now update when the sort order

of the table list changes.
This commit is contained in:
eelke 2018-10-21 13:47:38 +02:00
parent d4d8316917
commit 1ae9a1151a
5 changed files with 61 additions and 26 deletions

View file

@ -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);
}