69
69
d->treeView = dynamic_cast<QTreeView *>(v);
70
70
d->listView = dynamic_cast<QListView *>(v);
72
connect(this, SIGNAL(textChanged(const QString &)),
73
this, SLOT(queueSearch(const QString &)));
72
connect(this, SIGNAL(textChanged(QString)),
73
this, SLOT(queueSearch(QString)));
76
76
connect(view(), SIGNAL(destroyed()),
77
77
this, SLOT(listViewDeleted()));
78
connect(model(), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
79
this, SLOT(slotDataChanged(const QModelIndex &, const QModelIndex &)));
80
connect(model(), SIGNAL(rowsInserted(const QModelIndex &, int , int )),
81
this, SLOT(slotRowsInserted(const QModelIndex &, int, int)));
82
connect(model(), SIGNAL(rowsRemoved(const QModelIndex &, int , int )),
83
this, SLOT(slotRowsRemoved(const QModelIndex &, int, int)));
84
connect(model(), SIGNAL(columnsInserted(const QModelIndex &, int, int )),
85
this, SLOT(slotColumnsInserted(const QModelIndex &, int, int )));
86
connect(model(), SIGNAL(columnsRemoved(const QModelIndex &, int, int)),
87
this, SLOT(slotColumnsRemoved(const QModelIndex &, int, int)));
78
connect(model(), SIGNAL(dataChanged(QModelIndex,QModelIndex)),
79
this, SLOT(slotDataChanged(QModelIndex,QModelIndex)));
80
connect(model(), SIGNAL(rowsInserted(QModelIndex,int,int)),
81
this, SLOT(slotRowsInserted(QModelIndex,int,int)));
82
connect(model(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
83
this, SLOT(slotRowsRemoved(QModelIndex,int,int)));
84
connect(model(), SIGNAL(columnsInserted(QModelIndex,int,int)),
85
this, SLOT(slotColumnsInserted(QModelIndex,int,int)));
86
connect(model(), SIGNAL(columnsRemoved(QModelIndex,int,int)),
87
this, SLOT(slotColumnsRemoved(QModelIndex,int,int)));
88
88
connect(model(), SIGNAL(modelReset()), this, SLOT(slotModelReset()));
172
172
disconnect(view(), SIGNAL(destroyed()),
173
173
this, SLOT(listViewDeleted()));
174
disconnect(model(), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
175
this, SLOT(slotDataChanged(const QModelIndex &, const QModelIndex &)));
176
disconnect(model(), SIGNAL(rowsInserted(const QModelIndex &, int , int )),
177
this, SLOT(slotRowsInserted(const QModelIndex &, int, int)));
178
disconnect(model(), SIGNAL(rowsRemoved(const QModelIndex &, int , int )),
179
this, SLOT(slotRowsRemoved(const QModelIndex &, int, int)));
180
disconnect(model(), SIGNAL(columnsInserted(const QModelIndex &, int, int )),
181
this, SLOT(slotColumnsInserted(const QModelIndex &, int, int )));
182
disconnect(model(), SIGNAL(columnsRemoved(const QModelIndex &, int, int)),
183
this, SLOT(slotColumnsRemoved(const QModelIndex &, int, int)));
174
disconnect(model(), SIGNAL(dataChanged(QModelIndex,QModelIndex)),
175
this, SLOT(slotDataChanged(QModelIndex,QModelIndex)));
176
disconnect(model(), SIGNAL(rowsInserted(QModelIndex,int,int)),
177
this, SLOT(slotRowsInserted(QModelIndex,int,int)));
178
disconnect(model(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
179
this, SLOT(slotRowsRemoved(QModelIndex,int,int)));
180
disconnect(model(), SIGNAL(columnsInserted(QModelIndex,int,int)),
181
this, SLOT(slotColumnsInserted(QModelIndex,int,int)));
182
disconnect(model(), SIGNAL(columnsRemoved(QModelIndex,int,int)),
183
this, SLOT(slotColumnsRemoved(QModelIndex,int,int)));
184
184
disconnect(model(), SIGNAL(modelReset()), this, SLOT(slotModelReset()));
191
191
connect(view(), SIGNAL(destroyed()),
192
192
this, SLOT(listViewDeleted()));
194
connect(model(), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
195
this, SLOT(slotDataChanged(const QModelIndex &, const QModelIndex &)));
196
connect(model(), SIGNAL(rowsInserted(const QModelIndex &, int , int )),
197
this, SLOT(slotRowsInserted(const QModelIndex &, int, int)));
198
connect(model(), SIGNAL(rowsRemoved(const QModelIndex &, int , int )),
199
this, SLOT(slotRowsRemoved(const QModelIndex &, int, int)));
200
connect(model(), SIGNAL(columnsInserted(const QModelIndex &, int, int )),
201
this, SLOT(slotColumnsInserted(const QModelIndex &, int, int )));
202
connect(model(), SIGNAL(columnsRemoved(const QModelIndex &, int, int)),
203
this, SLOT(slotColumnsRemoved(const QModelIndex &, int, int)));
194
connect(model(), SIGNAL(dataChanged(QModelIndex,QModelIndex)),
195
this, SLOT(slotDataChanged(QModelIndex,QModelIndex)));
196
connect(model(), SIGNAL(rowsInserted(QModelIndex,int,int)),
197
this, SLOT(slotRowsInserted(QModelIndex,int,int)));
198
connect(model(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
199
this, SLOT(slotRowsRemoved(QModelIndex,int,int)));
200
connect(model(), SIGNAL(columnsInserted(QModelIndex,int,int)),
201
this, SLOT(slotColumnsInserted(QModelIndex,int,int)));
202
connect(model(), SIGNAL(columnsRemoved(QModelIndex,int,int)),
203
this, SLOT(slotColumnsRemoved(QModelIndex,int,int)));
204
204
connect(model(), SIGNAL(modelReset()), this, SLOT(slotModelReset()));