forked from pool/tellico
Accepted submit request 55853 from user wstephenson OBS-URL: https://build.opensuse.org/request/show/55853 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tellico?expand=0&rev=35
17 lines
864 B
Diff
17 lines
864 B
Diff
--- trunk/extragear/office/tellico/src/detailedlistview.cpp 2010/11/11 05:02:55 1195445
|
|
+++ trunk/extragear/office/tellico/src/detailedlistview.cpp 2010/11/11 05:03:32 1195446
|
|
@@ -133,8 +133,13 @@
|
|
}
|
|
}
|
|
|
|
+ // we don't want to immediately hide all these columns when adding fields
|
|
+ disconnect(model(), SIGNAL(columnsInserted(const QModelIndex&, int, int)),
|
|
+ this, SLOT(hideNewColumn(const QModelIndex&, int, int)));
|
|
sourceModel()->setImagesAreAvailable(false);
|
|
sourceModel()->setFields(coll_->fields());
|
|
+ connect(model(), SIGNAL(columnsInserted(const QModelIndex&, int, int)),
|
|
+ this, SLOT(hideNewColumn(const QModelIndex&, int, int)));
|
|
|
|
// we're not using saveState() and restoreState() since our columns are variable
|
|
QStringList columnNames = config.readEntry(QLatin1String("ColumnNames") + configN, QStringList());
|