Th default values of columns are now joined with the other column data and displayed in the default column of the column tableview.

This commit is contained in:
eelke 2017-12-19 18:57:05 +01:00
parent 8402470baa
commit a69aa401b2
3 changed files with 17 additions and 9 deletions

View file

@ -63,7 +63,7 @@ QVariant ColumnTableModel::headerData(int section, Qt::Orientation orientation,
c = tr("Type");
break;
case NullCol:
c = tr("Nullable");
c = tr("Not null");
break;
case DefaultCol:
c = tr("Default");
@ -136,10 +136,10 @@ QVariant ColumnTableModel::getData(const QModelIndex &index) const
s = getTypeDisplayString(*m_catalog, t.typid);
break;
case NullCol:
s = t.notnull ? "NOT NULL" : "";
s = QString::fromStdU16String(t.notnull ? u"\u2713" : u"");
break;
case DefaultCol:
s = "";
s = t.defaultValue;
break;
case CollationCol:
s = ""; //t.collation;