The tablespage now has a namespace filter allowing it to be used for

a pg_catalog and information_schema tab.
This commit is contained in:
eelke 2018-12-29 10:56:24 +01:00
parent d129876d06
commit a0579538df
5 changed files with 60 additions and 9 deletions

View file

@ -16,7 +16,6 @@
#include "ResultTableModelUtil.h"
#include "SqlFormattingUtils.h"
#include "SqlSyntaxHighlighter.h"
#include "TablesTableModel.h"
#include "TriggerPage.h"
#include "UserConfiguration.h"
#include "SqlCodePreview.h"
@ -57,6 +56,8 @@ TablesPage::TablesPage(DatabaseWindow *parent)
ui->indexSqlEdit->setFont(code_font);
// Connect signals
// ---------------
// Table selection
@ -142,6 +143,11 @@ void TablesPage::setCatalog(std::shared_ptr<PgDatabaseCatalog> cat)
highlighter->setTypes(*cat->types());
}
void TablesPage::setNamespaceFilter(TablesTableModel::NamespaceFilter filter)
{
m_tablesModel->setNamespaceFilter(filter);
}
void TablesPage::tableListTable_currentRowChanged(const QModelIndex &current, const QModelIndex &previous)
{