The list of indexes on a table now also shows the access method (ie btree)
This commit is contained in:
parent
7c4f1a4752
commit
50cb21b6f9
17 changed files with 198 additions and 26 deletions
|
|
@ -17,7 +17,7 @@ void IndexModel::setData(std::shared_ptr<const PgDatabaseCatalog> cat, const PgC
|
|||
|
||||
int IndexModel::rowCount(const QModelIndex &/*parent*/) const
|
||||
{
|
||||
return m_indexes.size();
|
||||
return (int)m_indexes.size();
|
||||
}
|
||||
|
||||
int IndexModel::columnCount(const QModelIndex &/*parent*/) const
|
||||
|
|
@ -43,6 +43,9 @@ QVariant IndexModel::headerData(int section, Qt::Orientation orientation, int ro
|
|||
case NameCol:
|
||||
c = tr("Name");
|
||||
break;
|
||||
case AmCol:
|
||||
c = tr("AM");
|
||||
break;
|
||||
case ColumnsCol:
|
||||
c = tr("On");
|
||||
break;
|
||||
|
|
@ -75,6 +78,10 @@ QVariant IndexModel::getData(const QModelIndex &index) const
|
|||
v = getIndexDisplayString(*m_catalog, dat.indexrelid);
|
||||
break;
|
||||
|
||||
case AmCol:
|
||||
v = dat.getAm();
|
||||
break;
|
||||
|
||||
case ColumnsCol:
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue