pgLab/pglab/DependantsPage.h
eelke 8dd13d103e Added dependants tab to table page
Retrieves all foreignkeys pointing to the current table
and shows the tables they are foreignkeys of.
2019-11-17 10:27:11 +01:00

30 lines
596 B
C++

#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