~verzegnassi-stefano/+junk/pdf-viewer

« back to all changes in this revision

Viewing changes to src/plugin/poppler-qml-plugin/plugin.cpp

Merged latest changes to the PDF plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "pdfzoom.h"
24
24
#include "pdferror.h"
25
25
#include "verticalview.h"
 
26
#include "touchdetectionarea.h"
26
27
 
27
28
void PopplerPlugin::registerTypes(const char *uri)
28
29
{
32
33
    qmlRegisterType<PdfDocument>(uri, 2, 0, "Document");
33
34
    qmlRegisterUncreatableType<PdfZoom>(uri, 2, 0, "Zoom", "Not creatable as an object, use only to retrieve error enums (e.g. PDF.Zoom.Manual)");
34
35
    qmlRegisterType<VerticalView>(uri, 2, 0, "VerticalView");
 
36
    qmlRegisterType<TouchDetectionArea>(uri, 2, 0, "TouchDetectionArea");
35
37
    qmlRegisterUncreatableType<PopplerError>(uri, 2, 0, "Error", "Not creatable as an object, use only to retrieve error enums (e.g. PDF.Error.FileNotFound)");
36
38
}
37
39