diff --git a/generators/mobipocket/converter.h b/generators/mobipocket/converter.h index f97b639ac..b6d8d0719 100644 --- a/generators/mobipocket/converter.h +++ b/generators/mobipocket/converter.h @@ -1,32 +1,32 @@ /*************************************************************************** * Copyright (C) 2008 by Jakub Stachowski * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef MOBI_CONVERTER_H #define MOBI_CONVERTER_H #include #include #include "mobidocument.h" #include namespace Mobi { class Converter : public Okular::TextDocumentConverter { public: Converter(); ~Converter(); - virtual QTextDocument *convert( const QString &fileName ); + QTextDocument *convert( const QString &fileName ) override; private: void handleMetadata(const QMap metadata); }; } #endif diff --git a/generators/mobipocket/generator_mobi.h b/generators/mobipocket/generator_mobi.h index 84fb954c8..1024ccfc6 100644 --- a/generators/mobipocket/generator_mobi.h +++ b/generators/mobipocket/generator_mobi.h @@ -1,26 +1,26 @@ /*************************************************************************** * Copyright (C) 2008 by Ely Levy * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef OKULAR_GENERATOR_MOBI_H #define OKULAR_GENERATOR_MOBI_H #include class MobiGenerator : public Okular::TextDocumentGenerator { Q_OBJECT Q_INTERFACES( Okular::Generator ) public: MobiGenerator( QObject *parent, const QVariantList &args ); ~MobiGenerator() {} // [INHERITED] reparse configuration - void addPages( KConfigDialog* dlg ); + void addPages( KConfigDialog* dlg ) override; }; #endif diff --git a/generators/mobipocket/mobidocument.h b/generators/mobipocket/mobidocument.h index 1d1b9bf55..de4398449 100644 --- a/generators/mobipocket/mobidocument.h +++ b/generators/mobipocket/mobidocument.h @@ -1,42 +1,42 @@ /*************************************************************************** * Copyright (C) 2008 by Jakub Stachowski * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef MOBI_DOCUMENT_H #define MOBI_DOCUMENT_H #include #include #include class QFile; namespace Mobipocket { class Document; class QFileStream; } namespace Mobi { class MobiDocument : public QTextDocument { public: MobiDocument(const QString &fileName); ~MobiDocument(); Mobipocket::Document* mobi() const { return doc; } protected: - virtual QVariant loadResource(int type, const QUrl &name); + QVariant loadResource(int type, const QUrl &name) override; private: QString fixMobiMarkup(const QString& data); Mobipocket::Document *doc; Mobipocket::QFileStream* file; }; } #endif