title: Qt4: How to get selected index in QTreeView
body: <p>I have a program that has a tree of directories that open into subtrees of files within those directories. There are two columns in my view: 
       - the tree itself
       - and a text column next to it that says whether the file was selected
  - The user can pick multiple files at once. After the user is done selecting, when they hit the "ok" button, the text should change to "selected" next to the appropriate files. 
  - The problem is, I can't figure out a way to tell it which indices to change the text of. I tried <code>selectionModel()-&gt;selectedIndexes() (and selectedRows)</code> but neither of these have a way to get the original index far as I can tell. How could I get the original from the overall tree?</p>