mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Keep field information in sqlb::Table object rather than DBBrowserObject
Keep all the table and field information in a sqlb::Table object (which itself is stored in DBBrowserObject) rather than storing field information in DBBrowserObject and sqlb::Table objects at the same time.
This commit is contained in:
@@ -169,12 +169,12 @@ void DbStructureModel::reloadData(DBBrowserDB* db)
|
||||
// If it is a table or view add the field Nodes
|
||||
if((*it).gettype() == "table" || (*it).gettype() == "view")
|
||||
{
|
||||
for(int i=0; i < it->fldmap.size(); ++i)
|
||||
for(int i=0; i < (*it).table.fields().size(); ++i)
|
||||
{
|
||||
QTreeWidgetItem *fldItem = new QTreeWidgetItem(tableItem);
|
||||
fldItem->setText(0, (*it).fldmap.at(i)->name());
|
||||
fldItem->setText(0, (*it).table.fields().at(i)->name());
|
||||
fldItem->setText(1, "field");
|
||||
fldItem->setText(2, (*it).fldmap.at(i)->type());
|
||||
fldItem->setText(2, (*it).table.fields().at(i)->type());
|
||||
fldItem->setIcon(0, QIcon(":/icons/field"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user