ui/uiengine/model/modelwrapper/src/glxmodelwrapper.cpp
changeset 50 a0f57508af73
parent 40 112f0ac2d1f0
child 58 383b67fbdb11
--- a/ui/uiengine/model/modelwrapper/src/glxmodelwrapper.cpp	Fri Jun 25 15:41:33 2010 +0530
+++ b/ui/uiengine/model/modelwrapper/src/glxmodelwrapper.cpp	Sat Jul 10 00:59:39 2010 +0530
@@ -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)