another fixme :/
svn path=/trunk/KDE/kdebase/runtime/; revision=1194426
This commit is contained in:
parent
29f4ac0d99
commit
681000ff05
|
@ -239,6 +239,7 @@ void DataModel::setItems(const QString &sourceName, const QVariantList &list)
|
||||||
void DataModel::removeSource(const QString &sourceName)
|
void DataModel::removeSource(const QString &sourceName)
|
||||||
{
|
{
|
||||||
//FIXME: this could be way more efficient by not resetting the whole model
|
//FIXME: this could be way more efficient by not resetting the whole model
|
||||||
|
//FIXME: find a way to remove only the proper things also in the case where sources are items
|
||||||
emit modelAboutToBeReset();
|
emit modelAboutToBeReset();
|
||||||
m_items.remove(sourceName);
|
m_items.remove(sourceName);
|
||||||
emit modelReset();
|
emit modelReset();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user