comments on columns
Show the comments in the list of columns of a table. Generate SQL to set them.
This commit is contained in:
parent
9d58af8cd2
commit
d6aeef492d
5 changed files with 23 additions and 3 deletions
|
|
@ -77,6 +77,9 @@ QVariant ColumnTableModel::headerData(int section, Qt::Orientation orientation,
|
|||
case CollationCol:
|
||||
c = tr("Collation");
|
||||
break;
|
||||
case CommentCol:
|
||||
c = tr("Comment");
|
||||
break;
|
||||
}
|
||||
}
|
||||
v = c;
|
||||
|
|
@ -200,6 +203,9 @@ QVariant ColumnTableModel::getData(const QModelIndex &index) const
|
|||
v = col->objectName();
|
||||
}
|
||||
break;
|
||||
case CommentCol:
|
||||
v = t.description;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue