| 403 | } |
| 404 | |
| 405 | void CFrmBookmark::onSetFavorite() |
| 406 | { |
| 407 | QModelIndex index = m_pTreeView->currentIndex(); |
| 408 | if (!index.isValid()) return; |
| 409 | |
| 410 | int type = index.data(Type).toInt(); |
| 411 | if (type != BookmarkType_Bookmark) return; |
| 412 | |
| 413 | int id = index.data(ID).toInt(); |
| 414 | BookmarkItem item = m_pDatabase->getBookmark(id); |
| 415 | if (item.id == 0) return; |
| 416 | |
| 417 | if (m_pDatabase->updateBookmark(item)) { |
| 418 | refresh(); |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | void CFrmBookmark::onImportBookmarks() |
| 423 | { |
nothing calls this directly
no test coverage detected