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

Method getComic

YACReaderLibrary/db/comic_model.cpp:923–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921}
922
923ComicDB ComicModel::getComic(const QModelIndex &mi)
924{
925 ComicDB c;
926 QString connectionName = "";
927 {
928 QSqlDatabase db = DataBaseManagement::loadDatabase(_databasePath);
929 bool found;
930 c = DBHelper::loadComic(_data.at(mi.row())->data(ComicModel::Id).toULongLong(), db, found);
931 connectionName = db.connectionName();
932 }
933 QSqlDatabase::removeDatabase(connectionName);
934
935 return c;
936}
937
938ComicDB ComicModel::_getComic(const QModelIndex &mi)
939{

Calls 2

dataMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected