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

Method _getComic

YACReaderLibrary/db/comic_model.cpp:938–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938ComicDB ComicModel::_getComic(const QModelIndex &mi)
939{
940 ComicDB c;
941 QString connectionName = "";
942 {
943 QSqlDatabase db = DataBaseManagement::loadDatabase(_databasePath);
944 bool found;
945 c = DBHelper::loadComic(_data.at(mi.row())->data(ComicModel::Id).toULongLong(), db, found);
946 connectionName = db.connectionName();
947 }
948 QSqlDatabase::removeDatabase(connectionName);
949
950 return c;
951}
952
953QVector<YACReaderComicReadStatus> ComicModel::getReadList()
954{

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected