|
Link Here
|
| 133 |
} |
133 |
} |
| 134 |
} |
134 |
} |
| 135 |
|
135 |
|
|
|
136 |
// we don't want to immediately hide all these columns when adding fields |
| 137 |
disconnect(model(), SIGNAL(columnsInserted(const QModelIndex&, int, int)), |
| 138 |
this, SLOT(hideNewColumn(const QModelIndex&, int, int))); |
| 136 |
sourceModel()->setImagesAreAvailable(false); |
139 |
sourceModel()->setImagesAreAvailable(false); |
| 137 |
sourceModel()->setFields(coll_->fields()); |
140 |
sourceModel()->setFields(coll_->fields()); |
|
|
141 |
connect(model(), SIGNAL(columnsInserted(const QModelIndex&, int, int)), |
| 142 |
this, SLOT(hideNewColumn(const QModelIndex&, int, int))); |
| 138 |
|
143 |
|
| 139 |
// we're not using saveState() and restoreState() since our columns are variable |
144 |
// we're not using saveState() and restoreState() since our columns are variable |
| 140 |
QStringList columnNames = config.readEntry(QLatin1String("ColumnNames") + configN, QStringList()); |
145 |
QStringList columnNames = config.readEntry(QLatin1String("ColumnNames") + configN, QStringList()); |