Added dependants tab to table page
Retrieves all foreignkeys pointing to the current table and shows the tables they are foreignkeys of.
This commit is contained in:
parent
b90df1cd77
commit
8dd13d103e
10 changed files with 268 additions and 4 deletions
30
pglab/DependantsPage.h
Normal file
30
pglab/DependantsPage.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#ifndef DEPENDENTSPAGE_H
|
||||
#define DEPENDENTSPAGE_H
|
||||
|
||||
#include "widgets/CatalogPageBase.h"
|
||||
|
||||
class PgClass;
|
||||
class DependantsTableModel;
|
||||
class QItemSelection;
|
||||
|
||||
class DependantsPage : public CatalogPageBase {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit DependantsPage(QWidget *parent = nullptr);
|
||||
|
||||
void setFilter(const std::optional<PgClass> &cls);
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
protected:
|
||||
void catalogSet() override;
|
||||
private:
|
||||
DependantsTableModel *m_model = nullptr;
|
||||
|
||||
private slots:
|
||||
// void tableView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
||||
};
|
||||
|
||||
|
||||
#endif // DEPENDENTSPAGE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue