MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / onSetFavorite

Method onSetFavorite

Plugins/WebBrowser/Bookmark/FrmBookmark.cpp:405–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void 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
422void CFrmBookmark::onImportBookmarks()
423{

Callers

nothing calls this directly

Calls 4

isValidMethod · 0.80
getBookmarkMethod · 0.80
updateBookmarkMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected