Commit eb1e7964 authored by Stefan Brüns's avatar Stefan Brüns Committed by Albert Astals Cid

[EPubGenerator] Use proper UserResource enum value for custom resource

Summary:
QTextDocument::ResourceType uses values 0 through 3, and provides
UserResource = 100 for custom types. Avoid possible future clashes.

Reviewers: #okular

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D20950
parent b74aa28f
......@@ -31,7 +31,7 @@ namespace Epub {
void setCurrentSubDocument(const QString &doc);
int maxContentHeight() const;
int maxContentWidth() const;
enum Multimedia { MovieResource = 4, AudioResource = 5 };
enum Multimedia { MovieResource = QTextDocument::UserResource, AudioResource };
protected:
QVariant loadResource(int type, const QUrl &name) override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment