diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-19 11:47:26 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-19 11:47:26 (GMT) |
commit | a1e9064df37b4d82a239d86d1c4822b37d47f4d6 (patch) | |
tree | a5fce220dc6d533563b83368d0b2495c7252757f /tools/designer/src/lib/shared/qsimpleresource.cpp | |
parent | 660a11df364615b390fc18d6e7c601eb24476948 (diff) | |
download | Qt-a1e9064df37b4d82a239d86d1c4822b37d47f4d6.zip Qt-a1e9064df37b4d82a239d86d1c4822b37d47f4d6.tar.gz Qt-a1e9064df37b4d82a239d86d1c4822b37d47f4d6.tar.bz2 |
make Qt Designer compile when Qt is configured with -no-script
Diffstat (limited to 'tools/designer/src/lib/shared/qsimpleresource.cpp')
-rw-r--r-- | tools/designer/src/lib/shared/qsimpleresource.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/designer/src/lib/shared/qsimpleresource.cpp b/tools/designer/src/lib/shared/qsimpleresource.cpp index 64e690f..3c7f032 100644 --- a/tools/designer/src/lib/shared/qsimpleresource.cpp +++ b/tools/designer/src/lib/shared/qsimpleresource.cpp @@ -81,8 +81,10 @@ QSimpleResource::QSimpleResource(QDesignerFormEditorInterface *core) : workingDirectory += QDir::separator(); workingDirectory += QLatin1String(".designer"); setWorkingDirectory(QDir(workingDirectory)); +#ifndef QT_FORMBUILDER_NO_SCRIPT // Disable scripting in the editors. formScriptRunner()-> setOptions(QFormScriptRunner::DisableScripts); +#endif } QSimpleResource::~QSimpleResource() |