| 91 | } |
| 92 | |
| 93 | void BookmarkDialog::OnItemClick(QTreeWidgetItem * item, int column) |
| 94 | { |
| 95 | if (column != 1) |
| 96 | return; |
| 97 | |
| 98 | auto const categoryIt = m_categories.find(item); |
| 99 | if (categoryIt != m_categories.cend()) |
| 100 | { |
| 101 | done(0); |
| 102 | m_framework.ShowBookmarkCategory(categoryIt->second); |
| 103 | return; |
| 104 | } |
| 105 | |
| 106 | auto const bookmarkIt = m_bookmarks.find(item); |
| 107 | if (bookmarkIt != m_bookmarks.cend()) |
| 108 | { |
| 109 | done(0); |
| 110 | m_framework.ShowBookmark(bookmarkIt->second); |
| 111 | return; |
| 112 | } |
| 113 | |
| 114 | auto const trackIt = m_tracks.find(item); |
| 115 | if (trackIt != m_tracks.cend()) |
| 116 | { |
| 117 | done(0); |
| 118 | m_framework.ShowTrack(trackIt->second); |
| 119 | return; |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | void BookmarkDialog::OnCloseClick() |
| 124 | { |
nothing calls this directly
no test coverage detected