From 0da493f1e4f6ab3ad76db8f44507f4c257c8e567 Mon Sep 17 00:00:00 2001 From: eelke Date: Tue, 8 Jun 2021 20:37:44 +0200 Subject: [PATCH] Remove unfinished namespace tab from UI. --- pglab/CatalogInspector.cpp | 10 +++++----- pglab/CatalogInspector.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pglab/CatalogInspector.cpp b/pglab/CatalogInspector.cpp index a9bc84d..87d4392 100644 --- a/pglab/CatalogInspector.cpp +++ b/pglab/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(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/CatalogInspector.h b/pglab/CatalogInspector.h index ce4b97e..01befd1 100644 --- a/pglab/CatalogInspector.h +++ b/pglab/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;