findresultmodel.cpp
changeset 831 25a950c2eb98
parent 829 832e96c9abb6
child 837 5ecd0462f76b
     1.1 --- a/findresultmodel.cpp	Tue Mar 09 08:28:49 2010 +0000
     1.2 +++ b/findresultmodel.cpp	Tue Mar 09 08:29:09 2010 +0000
     1.3 @@ -9,9 +9,7 @@
     1.4  {
     1.5      QVector<QVariant> rootData;
     1.6  	rootData << "Heading";
     1.7 -
     1.8      rootItem = new FindResultItem(rootData);
     1.9 -    //setupModelData(data.split(QString("\n")), rootItem);
    1.10  }
    1.11  
    1.12  FindResultModel::~FindResultModel()
    1.13 @@ -22,10 +20,7 @@
    1.14  void FindResultModel::clear()
    1.15  {
    1.16  	if (rootItem->childCount()>0)
    1.17 -	{
    1.18 -		//QModelIndex ix=createIndex(0,0,rootItem);
    1.19  		removeRows (0,rowCount (QModelIndex ()));
    1.20 -	}
    1.21  }
    1.22  
    1.23  int FindResultModel::columnCount(const QModelIndex & /* parent */) const