MCPcopy Create free account
hub / github.com/YACReader/yacreader / isFavorite

Method isFavorite

YACReaderLibrary/db/comic_model.cpp:1401–1414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1399}
1400
1401bool ComicModel::isFavorite(const QModelIndex &index)
1402{
1403 bool isFavorite;
1404 QString connectionName = "";
1405 {
1406 QSqlDatabase db = DataBaseManagement::loadDatabase(_databasePath);
1407
1408 isFavorite = DBHelper::isFavoriteComic(_data[index.row()]->data(Id).toLongLong(), db);
1409 connectionName = db.connectionName();
1410 }
1411 QSqlDatabase::removeDatabase(connectionName);
1412
1413 return isFavorite;
1414}
1415
1416void ComicModel::setShowRecent(bool showRecent)
1417{

Callers 1

updateInfoForIndexMethod · 0.80

Calls 2

dataMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected