Sequence and Function pages are now properly filtered on namespace.
This commit is contained in:
parent
7ca671a078
commit
f2808de613
17 changed files with 136 additions and 48 deletions
|
|
@ -1,9 +1,10 @@
|
|||
#ifndef PROCTABLEMODEL_H
|
||||
#define PROCTABLEMODEL_H
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
#include "catalog/PgClass.h"
|
||||
#include "catalog/PgProc.h"
|
||||
#include "NamespaceFilter.h"
|
||||
#include <QAbstractTableModel>
|
||||
#include <memory>
|
||||
|
||||
class PgDatabaseCatalog;
|
||||
|
|
@ -34,6 +35,7 @@ public:
|
|||
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||
void setCatalog(std::shared_ptr<const PgDatabaseCatalog> cat);
|
||||
void setNamespaceFilter(NamespaceFilter filter);
|
||||
|
||||
// Basic functionality:
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
|
@ -44,8 +46,10 @@ public:
|
|||
|
||||
private:
|
||||
std::shared_ptr<const PgDatabaseCatalog> m_catalog;
|
||||
std::shared_ptr<const PgProcContainer> m_procs;
|
||||
NamespaceFilter m_namespaceFilter = NamespaceFilter::User;
|
||||
std::vector<PgProc> m_procs;
|
||||
|
||||
void reloadData();
|
||||
Oid getType(int column) const;
|
||||
QVariant getData(const QModelIndex &index) const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue