Moved code from TablesPage into seperate PropetiesPage component

Clears up the TablePage and makes rhe propertypage reusable.
This commit is contained in:
eelke 2018-10-20 10:58:42 +02:00
parent b8cfb223be
commit 38ae5f50e4
8 changed files with 73 additions and 36 deletions

View file

@ -16,6 +16,7 @@ class PgDatabaseCatalog;
class NamespaceFilterWidget;
class IndexModel;
class MainWindow;
class PropertiesPage;
class TriggerPage;
class TablesPage : public QWidget
@ -30,6 +31,8 @@ public:
private:
Ui::TablesPage *ui;
MainWindow *m_window;
QWidget *m_propertiesTab;
PropertiesPage *m_propertiesPage;
QWidget *m_triggerTab;
TriggerPage *m_triggerPage;
std::shared_ptr<PgDatabaseCatalog> m_catalog;
@ -40,7 +43,7 @@ private:
//NamespaceFilterWidget* m_namespaceFilterWidget;
void retranslateUi(bool all = true);
QWidget* addDetailTab(QWidget *contents, QString caption);
QWidget* addDetailTab(QWidget *contents);
private slots:
void tableListTable_currentRowChanged(const QModelIndex &current, const QModelIndex &previous);