121 if(index.isValid())
122 pItem = static_cast<ModelItem*>(index.internalPointer());
123 else
124 pItem = pRoot;
125 return pItem->getData(index.column());
121 if(index.isValid())
122 pItem = static_cast<ModelItem*>(index.internalPointer());
123 else
124 pItem = pRoot;
125 return pItem->getData(index.column());
To copy to clipboard, switch view to plain text mode
What would you expect here instead of an assertion when index is not valid? Hint: when index is not valid, index.column() will not contain a valid column but -1...
Bookmarks