Sequence and Function pages are now properly filtered on namespace.
This commit is contained in:
parent
7ca671a078
commit
f2808de613
17 changed files with 136 additions and 48 deletions
|
|
@ -37,6 +37,7 @@ CatalogFunctionsPage::CatalogFunctionsPage(QWidget *parent)
|
|||
m_functionTable->setModel(m_sortFilterProxy);
|
||||
m_functionTable->setSortingEnabled(true);
|
||||
m_functionTable->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
m_functionTable->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
|
||||
connect(m_functionTable->selectionModel(), &QItemSelectionModel::currentRowChanged, this,
|
||||
&CatalogFunctionsPage::functionTable_currentRowChanged);
|
||||
|
|
@ -60,6 +61,11 @@ void CatalogFunctionsPage::setCatalog(std::shared_ptr<const PgDatabaseCatalog> c
|
|||
m_functionTable->resizeColumnsToContents();
|
||||
}
|
||||
|
||||
void CatalogFunctionsPage::setNamespaceFilter(NamespaceFilter filter)
|
||||
{
|
||||
m_model->setNamespaceFilter(filter);
|
||||
}
|
||||
|
||||
void CatalogFunctionsPage::functionTable_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous)
|
||||
{
|
||||
if (current.row() != previous.row()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue