ui/uiengine/model/modelwrapper/src/glxmodelwrapper.cpp
changeset 50 a0f57508af73
parent 40 112f0ac2d1f0
child 58 383b67fbdb11
equal deleted inserted replaced
45:863223ea6961 50:a0f57508af73
   171     endResetModel();
   171     endResetModel();
   172     }
   172     }
   173 
   173 
   174 void GlxModelWrapper::dataChangedinModel(QModelIndex startIndex, QModelIndex endIndex)
   174 void GlxModelWrapper::dataChangedinModel(QModelIndex startIndex, QModelIndex endIndex)
   175     {
   175     {
   176     emit dataChanged(index(startIndex.row(),startIndex.column()),index(endIndex.row(),endIndex.column()));
   176     int aStartRow = startIndex.row();
       
   177 
       
   178     if((aStartRow  == 14) || (aStartRow+1 == rowCount()))
       
   179         {
       
   180         emit dataChanged(index(0,0),index(endIndex.row(),0));
       
   181         }
       
   182     else if(aStartRow  >= 15)
       
   183         {
       
   184         emit dataChanged(index(aStartRow,0),index(endIndex.row(),0));
       
   185         }
       
   186     else
       
   187         {
       
   188         // Do Nothing
       
   189         }
   177     }
   190     }
   178 
   191 
   179 void GlxModelWrapper::rowsAboutToBeInserted(const QModelIndex &parent,int start,int end)
   192 void GlxModelWrapper::rowsAboutToBeInserted(const QModelIndex &parent,int start,int end)
   180     {
   193     {
   181     Q_UNUSED(parent);
   194     Q_UNUSED(parent);