Get a hash table of tags by name
| 800 | |
| 801 | // Get a hash table of tags by name |
| 802 | void TagTable::getNameMap(QHash<QString,QString> &nameMap) { |
| 803 | QList<qint32> tags; |
| 804 | Tag t; |
| 805 | getAll(tags); |
| 806 | nameMap.empty(); |
| 807 | for (int i=0; i<tags.size(); i++) { |
| 808 | get(t,tags[i]); |
| 809 | nameMap.insert(t.name, t.guid); |
| 810 | } |
| 811 | } |
| 812 | |
| 813 | |
| 814 |