mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-06 16:09:12 +00:00
adapt to a change I just applied in kdelibs
svn path=/trunk/KDE/kdegraphics/okular/; revision=809494
This commit is contained in:
parent
18f486c2c1
commit
2a9da4a778
|
@ -50,7 +50,7 @@ class Okular::ExecutorKJSPrivate
|
|||
|
||||
DocumentPrivate *m_doc;
|
||||
KJSInterpreter *m_interpreter;
|
||||
KJSObject m_docObject;
|
||||
KJSGlobalObject m_docObject;
|
||||
};
|
||||
|
||||
void ExecutorKJSPrivate::initTypes()
|
||||
|
|
|
@ -279,9 +279,9 @@ void JSDocument::initType( KJSContext *ctx )
|
|||
g_docProto->defineFunction( ctx, "syncAnnotScan", docSyncAnnotScan );
|
||||
}
|
||||
|
||||
KJSObject JSDocument::wrapDocument( DocumentPrivate *doc )
|
||||
KJSGlobalObject JSDocument::wrapDocument( DocumentPrivate *doc )
|
||||
{
|
||||
if ( !g_docProto )
|
||||
g_docProto = new KJSPrototype();
|
||||
return g_docProto->constructObject( 0, doc );
|
||||
return g_docProto->constructGlobalObject( doc );
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#define OKULAR_SCRIPT_KJS_DOCUMENT_P_H
|
||||
|
||||
class KJSContext;
|
||||
class KJSObject;
|
||||
class KJSGlobalObject;
|
||||
|
||||
namespace Okular {
|
||||
|
||||
|
@ -22,7 +22,7 @@ class JSDocument
|
|||
{
|
||||
public:
|
||||
static void initType( KJSContext *ctx );
|
||||
static KJSObject wrapDocument( DocumentPrivate *doc );
|
||||
static KJSGlobalObject wrapDocument( DocumentPrivate *doc );
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue