ui/uiengine/model/modelwrapper/src/glxmodelwrapper.cpp
changeset 55 fb37077c270f
parent 29 2c833fc9e98f
child 58 383b67fbdb11
--- a/ui/uiengine/model/modelwrapper/src/glxmodelwrapper.cpp	Tue Jul 06 14:16:16 2010 +0300
+++ b/ui/uiengine/model/modelwrapper/src/glxmodelwrapper.cpp	Wed Aug 18 09:48:53 2010 +0300
@@ -173,7 +173,20 @@
 
 void GlxModelWrapper::dataChangedinModel(QModelIndex startIndex, QModelIndex endIndex)
     {
-    emit dataChanged(index(startIndex.row(),startIndex.column()),index(endIndex.row(),endIndex.column()));
+    int aStartRow = startIndex.row();
+
+    if((aStartRow  == 14) || (aStartRow+1 == rowCount()))
+        {
+        emit dataChanged(index(0,0),index(endIndex.row(),0));
+        }
+    else if(aStartRow  >= 15)
+        {
+        emit dataChanged(index(aStartRow,0),index(endIndex.row(),0));
+        }
+    else
+        {
+        // Do Nothing
+        }
     }
 
 void GlxModelWrapper::rowsAboutToBeInserted(const QModelIndex &parent,int start,int end)