diff --git a/pglab/catalog/widgets/CatalogInspector.cpp b/pglab/catalog/widgets/CatalogInspector.cpp index cf61f4f..adc58df 100644 --- a/pglab/catalog/widgets/CatalogInspector.cpp +++ b/pglab/catalog/widgets/CatalogInspector.cpp @@ -17,7 +17,7 @@ CatalogInspector::CatalogInspector(std::shared_ptr open_database, : QWidget(parent) { m_tabWidget = new QTabWidget(this); -// m_namespacePage = new CatalogNamespacePage(this); + m_namespacePage = new CatalogNamespacePage(this); m_tablesPage = new CatalogTablesPage(open_database, this); m_functionsPage = new CatalogFunctionsPage(this); m_sequencesPage = new CatalogSequencesPage(this); @@ -26,7 +26,7 @@ CatalogInspector::CatalogInspector(std::shared_ptr open_database, auto layout = new QVBoxLayout(this); setLayout(layout); layout->addWidget(m_tabWidget); -// m_tabWidget->addTab(m_namespacePage, ""); + m_tabWidget->addTab(m_namespacePage, ""); m_tabWidget->addTab(m_tablesPage, ""); m_tabWidget->addTab(m_functionsPage, ""); m_tabWidget->addTab(m_sequencesPage, ""); @@ -40,8 +40,8 @@ void CatalogInspector::retranslateUi(bool all) { m_tablesPage->retranslateUi(all); -// m_tabWidget->setTabText(m_tabWidget->indexOf(m_namespacePage), -// QApplication::translate("CatalogInspector", "Schemas", nullptr)); + m_tabWidget->setTabText(m_tabWidget->indexOf(m_namespacePage), + QApplication::translate("CatalogInspector", "Schemas", nullptr)); m_tabWidget->setTabText(m_tabWidget->indexOf(m_tablesPage), QApplication::translate("CatalogInspector", "Tables", nullptr)); m_tabWidget->setTabText(m_tabWidget->indexOf(m_functionsPage), @@ -59,7 +59,7 @@ CatalogInspector::~CatalogInspector() void CatalogInspector::setCatalog(std::shared_ptr cat) { m_catalog = cat; -// m_namespacePage->setCatalog(cat); + m_namespacePage->setCatalog(cat); m_tablesPage->setCatalog(cat); m_functionsPage->setCatalog(cat); m_sequencesPage->setCatalog(cat); diff --git a/pglab/catalog/widgets/CatalogInspector.h b/pglab/catalog/widgets/CatalogInspector.h index 01befd1..ea5c7a6 100644 --- a/pglab/catalog/widgets/CatalogInspector.h +++ b/pglab/catalog/widgets/CatalogInspector.h @@ -26,7 +26,7 @@ public: CatalogTablesPage *tablesPage(); private: QTabWidget *m_tabWidget = nullptr; -// CatalogNamespacePage *m_namespacePage = nullptr; + CatalogNamespacePage *m_namespacePage = nullptr; CatalogTablesPage *m_tablesPage = nullptr; CatalogFunctionsPage *m_functionsPage = nullptr; CatalogSequencesPage *m_sequencesPage = nullptr;