| 149 | } |
| 150 | |
| 151 | CRecentDatabase::RecentItem CRecentModel::getItem(const QModelIndex &index) |
| 152 | { |
| 153 | CRecentDatabase::RecentItem item; |
| 154 | if (!index.isValid()) |
| 155 | return item; |
| 156 | |
| 157 | if(index.row() >= m_Items.count()) |
| 158 | return item; |
| 159 | |
| 160 | item = m_Items.at(index.row()); |
| 161 | return item; |
| 162 | } |
| 163 | |
| 164 | bool CRecentModel::addItem(const CRecentDatabase::RecentItem &item) |
| 165 | { |
no test coverage detected