| 174 | } |
| 175 | |
| 176 | bool CHistoryModel::search(const QString &keyword) |
| 177 | { |
| 178 | if(!m_pDatabase) return false; |
| 179 | beginResetModel(); |
| 180 | m_historyItems = m_pDatabase->searchHistory(keyword); |
| 181 | endResetModel(); |
| 182 | return true; |
| 183 | } |
| 184 | |
| 185 | bool CHistoryModel::importFromJson(const QString &filename) |
| 186 | { |
no test coverage detected