pg_classes can be loaded now, used in TablesTableModel for overview of tables in database.
This commit is contained in:
parent
43e6042794
commit
6466062cc8
23 changed files with 524 additions and 173 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#include <memory>
|
||||
|
||||
class PgDatabaseContainer;
|
||||
class PgDatabaseCatalogue;
|
||||
class PgDatabaseCatalog;
|
||||
|
||||
/** Class for displaying the list of databases of a server in a QTableView
|
||||
*
|
||||
|
|
@ -23,7 +23,7 @@ public:
|
|||
|
||||
explicit DatabasesTableModel(QObject *parent);
|
||||
|
||||
void setDatabaseList(std::shared_ptr<const PgDatabaseCatalogue> cat);
|
||||
void setDatabaseList(std::shared_ptr<const PgDatabaseCatalog> cat);
|
||||
|
||||
// Header:
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||
|
|
@ -36,7 +36,7 @@ public:
|
|||
virtual QVariant getData(const QModelIndex &index) const override;
|
||||
|
||||
private:
|
||||
std::shared_ptr<const PgDatabaseCatalogue> m_catalog;
|
||||
std::shared_ptr<const PgDatabaseCatalog> m_catalog;
|
||||
std::shared_ptr<const PgDatabaseContainer> m_databases;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue