TYPE RECOMMENDED
)
-add_definitions(
- # these conditionals are probably going to become default in the future
- -DQT_POSIX_IPC
- # -DQT_STRICT_ITERATORS
- # -DQT_ASCII_CAST_WARNINGS
- # maybe one day, this forces it onto other projects which (most likely)
- # means source code adjustments!
- # -DQT_NO_CAST_FROM_ASCII
- # -DQT_NO_CAST_TO_ASCII
-)
-
# for symbols mangling while backtracing in core component
check_include_file_cxx(cxxabi.h HAVE_CXXABI)
-# add_definitions()
+add_definitions(
+ # that conditional is probably going to become default in the future
+ -DQT_POSIX_IPC
+)
set(EXTRA_CORE_LIBS
${ZLIB_LIBRARIES}
${ICU_LIBRARIES}
add_definitions(
- -DQT_SCRIPT_LIB -DQT_UITOOLS_LIB
-DKATIE_TOOLS_SUFFIX="${KATIE_TOOLS_SUFFIX}"
)
set(EXTRA_DESIGNER_LIBS
#include <QtGui/QHBoxLayout>
#include <QtGui/QDialogButtonBox>
#include <QtGui/QMessageBox>
-#ifdef QT_SCRIPT_LIB
#include <QtScript/QScriptEngine>
-#endif
QT_BEGIN_NAMESPACE
const QString script = trimmedScript();
if (script.isEmpty())
return true;
-#ifdef QT_SCRIPT_LIB
QScriptEngine scriptEngine;
if (scriptEngine.canEvaluate(script))
return true;
m_dialogGui->message(this, QDesignerDialogGuiInterface::ScriptDialogMessage, QMessageBox::Warning,
windowTitle(), tr("Syntax error"), QMessageBox::Ok);
return false;
-#else
- Q_UNUSED(m_dialogGui);
- return true;
-#endif
}
} // namespace qdesigner_internal
QT_END_NAMESPACE
+
#include "moc_scriptdialog_p.h"
-add_definitions(-DQT_UITOOLS_LIB)
+# add_definitions()
set(EXTRA_UITOOLS_LIBS KtCore KtGui KtXml KtScript)
set(UITOOLS_PUBLIC_HEADERS