mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Remove deprecated property manga
from folder and comic_info
This commit is contained in:
@ -105,8 +105,9 @@ QString ComicDB::toTXT()
|
||||
if (!info.ageRating.isNull())
|
||||
txt.append(QString("ageRating:%1\r\n").arg(info.ageRating.toString()));
|
||||
|
||||
if (!info.manga.isNull())
|
||||
txt.append(QString("manga:%1\r\n").arg(info.manga.toString()));
|
||||
if (!info.type.isNull())
|
||||
txt.append(QString("manga:%1\r\n").arg(info.type.value<YACReader::FileType>() == YACReader::FileType::Manga ? "1" : "0"));
|
||||
|
||||
// Argumento
|
||||
if (!info.synopsis.isNull())
|
||||
txt.append(QString("synopsis:%1\r\n").arg(info.synopsis.toString()));
|
||||
@ -308,7 +309,6 @@ void ComicInfo::deleteMetadata()
|
||||
format = QVariant();
|
||||
color = QVariant();
|
||||
ageRating = QVariant();
|
||||
manga = QVariant();
|
||||
|
||||
synopsis = QVariant();
|
||||
characters = QVariant();
|
||||
@ -372,7 +372,6 @@ ComicInfo &ComicInfo::operator=(const ComicInfo &comicInfo)
|
||||
publisher = comicInfo.publisher;
|
||||
format = comicInfo.format;
|
||||
color = comicInfo.color;
|
||||
manga = comicInfo.manga;
|
||||
ageRating = comicInfo.ageRating;
|
||||
synopsis = comicInfo.synopsis;
|
||||
characters = comicInfo.characters;
|
||||
@ -655,7 +654,6 @@ QDataStream &operator<<(QDataStream &stream, const ComicInfo &comicInfo)
|
||||
stream << comicInfo.format;
|
||||
stream << comicInfo.color;
|
||||
stream << comicInfo.ageRating;
|
||||
stream << comicInfo.manga;
|
||||
|
||||
stream << comicInfo.synopsis;
|
||||
stream << comicInfo.characters;
|
||||
@ -735,7 +733,6 @@ QDataStream &operator>>(QDataStream &stream, ComicInfo &comicInfo)
|
||||
stream >> comicInfo.format;
|
||||
stream >> comicInfo.color;
|
||||
stream >> comicInfo.ageRating;
|
||||
stream >> comicInfo.manga;
|
||||
|
||||
stream >> comicInfo.synopsis;
|
||||
stream >> comicInfo.characters;
|
||||
|
@ -80,7 +80,6 @@ public:
|
||||
QVariant format; // string
|
||||
QVariant color; // bool
|
||||
QVariant ageRating; // string
|
||||
[[deprecated("use type instead")]] QVariant manga; // bool
|
||||
|
||||
QVariant synopsis; // string
|
||||
QVariant characters; // string
|
||||
@ -186,7 +185,6 @@ public:
|
||||
Q_PROPERTY(QVariant format MEMBER format CONSTANT)
|
||||
Q_PROPERTY(QVariant color MEMBER color CONSTANT)
|
||||
Q_PROPERTY(QVariant ageRating MEMBER ageRating CONSTANT)
|
||||
Q_PROPERTY(QVariant manga MEMBER manga CONSTANT)
|
||||
|
||||
Q_PROPERTY(QVariant synopsis MEMBER synopsis CONSTANT)
|
||||
Q_PROPERTY(QVariant characters MEMBER characters CONSTANT)
|
||||
|
@ -3,7 +3,6 @@
|
||||
Folder::Folder()
|
||||
: knownParent(false),
|
||||
knownId(false),
|
||||
manga(false),
|
||||
numChildren(-1)
|
||||
{
|
||||
}
|
||||
@ -11,7 +10,6 @@ Folder::Folder()
|
||||
Folder::Folder(qulonglong folderId, qulonglong parentId, const QString &folderName, const QString &folderPath)
|
||||
: knownParent(true),
|
||||
knownId(true),
|
||||
manga(false),
|
||||
numChildren(-1)
|
||||
{
|
||||
this->id = folderId;
|
||||
@ -26,7 +24,6 @@ Folder::Folder(qulonglong folderId,
|
||||
const QString &folderPath,
|
||||
bool completed,
|
||||
bool finished,
|
||||
bool manga,
|
||||
int numChildren,
|
||||
const QString &firstChildHash,
|
||||
const QString &customImage,
|
||||
@ -43,7 +40,6 @@ Folder::Folder(qulonglong folderId,
|
||||
this->path = folderPath;
|
||||
this->completed = completed;
|
||||
this->finished = finished;
|
||||
this->manga = manga;
|
||||
this->numChildren = numChildren;
|
||||
this->firstChildHash = firstChildHash;
|
||||
this->customImage = customImage;
|
||||
@ -65,7 +61,6 @@ Folder &Folder::operator=(const Folder &other)
|
||||
this->knownId = other.knownId;
|
||||
this->finished = other.finished;
|
||||
this->completed = other.completed;
|
||||
this->manga = other.manga;
|
||||
this->numChildren = other.numChildren;
|
||||
this->firstChildHash = other.firstChildHash;
|
||||
this->customImage = other.customImage;
|
||||
|
@ -14,7 +14,6 @@ public:
|
||||
|
||||
bool finished; // finished means read, the user has read all the content in this folder
|
||||
bool completed; // completed means the folder has all the content, e.g. a series got its final issue and the user has collected all of them
|
||||
[[deprecated("use type instead")]] bool manga;
|
||||
|
||||
qint32 numChildren; //-1 for unknown number of children
|
||||
QString firstChildHash; // empty for unknown first child
|
||||
@ -32,7 +31,6 @@ public:
|
||||
const QString &folderPath,
|
||||
bool completed,
|
||||
bool finished,
|
||||
bool manga,
|
||||
int numChildren,
|
||||
const QString &firstChildHash,
|
||||
const QString &customImage,
|
||||
|
Reference in New Issue
Block a user