| 945 | } |
| 946 | |
| 947 | QModelIndex ProjectModel::indexFromItem( const ProjectBaseItem* item ) const |
| 948 | { |
| 949 | if( item && item->d_func()->parent ) { |
| 950 | return createIndex( item->row(), 0, item->d_func()->parent ); |
| 951 | } |
| 952 | return QModelIndex(); |
| 953 | } |
| 954 | |
| 955 | ProjectBaseItem* ProjectModel::itemFromIndex( const QModelIndex& index ) const |
| 956 | { |