Rework of catalog objects. Several of them are now inheriting from common

base classes that implement common functionality.
This commit is contained in:
eelke 2018-11-25 19:45:06 +01:00
parent 840af1e0a9
commit 73c4cf4790
45 changed files with 340 additions and 265 deletions

View file

@ -13,7 +13,7 @@ void IndexModel::setData(std::shared_ptr<const PgDatabaseCatalog> cat, const std
m_catalog = cat;
m_table = table;
if (table)
m_indexes = cat->indexes()->getIndexesForTable(table->oid);
m_indexes = cat->indexes()->getIndexesForTable(table->oid());
else
m_indexes.clear();
}
@ -78,7 +78,7 @@ QVariant IndexModel::getData(const QModelIndex &index) const
break;
case NameCol:
v = getIndexDisplayString(*m_catalog, dat.indexrelid);
v = dat.objectName(); // getIndexDisplayString(*m_catalog, dat.indexrelid);
break;
case AmCol: