refactor use PgLabTableViewHelper on CatalogTablesPage
This commit is contained in:
parent
87ab22919f
commit
90851ef950
9 changed files with 68 additions and 54 deletions
|
|
@ -14,6 +14,7 @@ class PgDatabaseCatalog;
|
|||
|
||||
class TablesTableModel: public QAbstractTableModel {
|
||||
public:
|
||||
using RowItem = PgClass;
|
||||
enum e_Columns : int {
|
||||
NameCol, ///< either table, ns.table or table (ns) depending on settings/filters
|
||||
NamespaceCol,
|
||||
|
|
@ -47,6 +48,10 @@ public:
|
|||
|
||||
virtual QVariant data(const QModelIndex &index, int role) const override;
|
||||
PgClass getTable(int row) const;
|
||||
RowItem rowItem(int row) const
|
||||
{
|
||||
return getTable(row);
|
||||
}
|
||||
Oid getTableOid(int row) const;
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue