treemodel.cpp
changeset 789 d85834ad8c54
parent 788 78ba80b54bc4
child 790 133e2ed6b9c5
     1.1 --- a/treemodel.cpp	Tue Aug 18 12:39:07 2009 +0000
     1.2 +++ b/treemodel.cpp	Mon Aug 24 14:39:07 2009 +0000
     1.3 @@ -66,14 +66,14 @@
     1.4      TreeItem *parentItem;
     1.5  
     1.6      if (!parent.isValid())
     1.7 -	{	//FIXME-1
     1.8 +	{	//FIXME-3 left here for testing only, seems to work now...
     1.9          parentItem = rootItem;
    1.10  		/*
    1.11  		cout << "TM::index()  no parent?! xxx\n";
    1.12  		cout << "   row="<<row<<"  col="<<column<<endl;
    1.13  		cout << "   parent.internal="<< parent.internalPointer()<<endl;
    1.14  		*/
    1.15 -		//return QModelIndex();	//FIXME-0 this line is new (testing)
    1.16 +		//return QModelIndex();	//FIXME-3 this line is new (testing)
    1.17  		// Somehow index is requested where parentIndex is invalid.
    1.18  		// what's happening here...?
    1.19  		// Check if Qt examples also return index of rootIem then...