Activate incomplete namespaces tab
This commit is contained in:
parent
daed59e51a
commit
7dc665948d
2 changed files with 6 additions and 6 deletions
|
|
@ -17,7 +17,7 @@ CatalogInspector::CatalogInspector(std::shared_ptr<OpenDatabase> open_database,
|
||||||
: QWidget(parent)
|
: QWidget(parent)
|
||||||
{
|
{
|
||||||
m_tabWidget = new QTabWidget(this);
|
m_tabWidget = new QTabWidget(this);
|
||||||
// m_namespacePage = new CatalogNamespacePage(this);
|
m_namespacePage = new CatalogNamespacePage(this);
|
||||||
m_tablesPage = new CatalogTablesPage(open_database, this);
|
m_tablesPage = new CatalogTablesPage(open_database, this);
|
||||||
m_functionsPage = new CatalogFunctionsPage(this);
|
m_functionsPage = new CatalogFunctionsPage(this);
|
||||||
m_sequencesPage = new CatalogSequencesPage(this);
|
m_sequencesPage = new CatalogSequencesPage(this);
|
||||||
|
|
@ -26,7 +26,7 @@ CatalogInspector::CatalogInspector(std::shared_ptr<OpenDatabase> open_database,
|
||||||
auto layout = new QVBoxLayout(this);
|
auto layout = new QVBoxLayout(this);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
layout->addWidget(m_tabWidget);
|
layout->addWidget(m_tabWidget);
|
||||||
// m_tabWidget->addTab(m_namespacePage, "");
|
m_tabWidget->addTab(m_namespacePage, "");
|
||||||
m_tabWidget->addTab(m_tablesPage, "");
|
m_tabWidget->addTab(m_tablesPage, "");
|
||||||
m_tabWidget->addTab(m_functionsPage, "");
|
m_tabWidget->addTab(m_functionsPage, "");
|
||||||
m_tabWidget->addTab(m_sequencesPage, "");
|
m_tabWidget->addTab(m_sequencesPage, "");
|
||||||
|
|
@ -40,8 +40,8 @@ void CatalogInspector::retranslateUi(bool all)
|
||||||
{
|
{
|
||||||
m_tablesPage->retranslateUi(all);
|
m_tablesPage->retranslateUi(all);
|
||||||
|
|
||||||
// m_tabWidget->setTabText(m_tabWidget->indexOf(m_namespacePage),
|
m_tabWidget->setTabText(m_tabWidget->indexOf(m_namespacePage),
|
||||||
// QApplication::translate("CatalogInspector", "Schemas", nullptr));
|
QApplication::translate("CatalogInspector", "Schemas", nullptr));
|
||||||
m_tabWidget->setTabText(m_tabWidget->indexOf(m_tablesPage),
|
m_tabWidget->setTabText(m_tabWidget->indexOf(m_tablesPage),
|
||||||
QApplication::translate("CatalogInspector", "Tables", nullptr));
|
QApplication::translate("CatalogInspector", "Tables", nullptr));
|
||||||
m_tabWidget->setTabText(m_tabWidget->indexOf(m_functionsPage),
|
m_tabWidget->setTabText(m_tabWidget->indexOf(m_functionsPage),
|
||||||
|
|
@ -59,7 +59,7 @@ CatalogInspector::~CatalogInspector()
|
||||||
void CatalogInspector::setCatalog(std::shared_ptr<PgDatabaseCatalog> cat)
|
void CatalogInspector::setCatalog(std::shared_ptr<PgDatabaseCatalog> cat)
|
||||||
{
|
{
|
||||||
m_catalog = cat;
|
m_catalog = cat;
|
||||||
// m_namespacePage->setCatalog(cat);
|
m_namespacePage->setCatalog(cat);
|
||||||
m_tablesPage->setCatalog(cat);
|
m_tablesPage->setCatalog(cat);
|
||||||
m_functionsPage->setCatalog(cat);
|
m_functionsPage->setCatalog(cat);
|
||||||
m_sequencesPage->setCatalog(cat);
|
m_sequencesPage->setCatalog(cat);
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ public:
|
||||||
CatalogTablesPage *tablesPage();
|
CatalogTablesPage *tablesPage();
|
||||||
private:
|
private:
|
||||||
QTabWidget *m_tabWidget = nullptr;
|
QTabWidget *m_tabWidget = nullptr;
|
||||||
// CatalogNamespacePage *m_namespacePage = nullptr;
|
CatalogNamespacePage *m_namespacePage = nullptr;
|
||||||
CatalogTablesPage *m_tablesPage = nullptr;
|
CatalogTablesPage *m_tablesPage = nullptr;
|
||||||
CatalogFunctionsPage *m_functionsPage = nullptr;
|
CatalogFunctionsPage *m_functionsPage = nullptr;
|
||||||
CatalogSequencesPage *m_sequencesPage = nullptr;
|
CatalogSequencesPage *m_sequencesPage = nullptr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue