[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kate/completion/expandingtree
From:       David Nolden <david.nolden.kde () art-master ! de>
Date:       2008-04-17 20:19:15
Message-ID: 1208463555.180150.25725.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 798249 by zwabel:

Only emit the dataChanged signal if the item was actually expanded



 M  +2 -1      expandingwidgetmodel.cpp  


--- trunk/KDE/kdelibs/kate/completion/expandingtree/expandingwidgetmodel.cpp \
#798248:798249 @@ -112,7 +112,8 @@
     m_expandState.clear();
 
     for( QMap<QPersistentModelIndex, \
ExpandingWidgetModel::ExpandingType>::const_iterator it = oldExpandState.begin(); it \
                != oldExpandState.end(); ++it )
-      emit dataChanged(it.key(), it.key());
+      if(it.value() == Expanded)
+      	emit dataChanged(it.key(), it.key());
 }
 
 ExpandingWidgetModel::ExpansionType ExpandingWidgetModel::isPartiallyExpanded(const \
QModelIndex& index) const {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic