NCXResource::NCXResource(const QString &mainfolder, const QString &fullfilepath, QObject *parent) : XMLResource(mainfolder, fullfilepath, parent) { FillWithDefaultText(); // Make sure the file exists on disk. // Among many reasons, this also solves the problem // with the Book Browser not displaying an icon for this resource. SaveToDisk(); }
OPFResource::OPFResource(const QString &mainfolder, const QString &fullfilepath, QObject *parent) : XMLResource(mainfolder, fullfilepath, parent), m_NavResource(NULL), m_WarnedAboutVersion(false) { CreateMimetypes(); FillWithDefaultText(); // Make sure the file exists on disk. // Among many reasons, this also solves the problem // with the Book Browser not displaying an icon for this resource. SaveToDisk(); }