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

Method GetFavorite

App/Client/Favorite/FavoriteModel.cpp:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323CFavoriteDatabase::Item CFavoriteModel::GetFavorite(const QString &szFile)
324{
325 CFavoriteDatabase::Item item(TreeItem::TYPE::Leaf);
326 if(!m_pDatabase) return item;
327 auto items = m_pDatabase->GetFavorite(szFile);
328 if(!items.isEmpty()) {
329 item = items.at(0);
330 }
331 return item;
332}
333
334void CFavoriteModel::Refresh()
335{

Callers 3

slotAddToFavoriteMethod · 0.45
AddFavoriteMethod · 0.45
UpdateTreeMethod · 0.45

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected