adapt to a change I just applied in kdelibs

svn path=/trunk/KDE/kdegraphics/okular/; revision=809494
This commit is contained in:
Harri Porten 2008-05-19 00:26:53 +00:00
parent 18f486c2c1
commit 2a9da4a778
3 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,7 @@ class Okular::ExecutorKJSPrivate
DocumentPrivate *m_doc;
KJSInterpreter *m_interpreter;
KJSObject m_docObject;
KJSGlobalObject m_docObject;
};
void ExecutorKJSPrivate::initTypes()

View file

@ -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 );
}

View file

@ -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 );
};
}