summaryrefslogtreecommitdiffstats
path: root/src/plugins/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/script')
-rw-r--r--src/plugins/script/qtdbus/main.cpp4
-rw-r--r--src/plugins/script/qtdbus/main.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/script/qtdbus/main.cpp b/src/plugins/script/qtdbus/main.cpp
index 6f09326..452f0e9 100644
--- a/src/plugins/script/qtdbus/main.cpp
+++ b/src/plugins/script/qtdbus/main.cpp
@@ -44,6 +44,8 @@
#include <QMetaMethod>
#include <QScriptExtensionPlugin>
+#ifndef QT_NO_DBUS
+
QT_USE_NAMESPACE
static QScriptValue setupDBusInterface(QScriptEngine *engine, QDBusAbstractInterface *iface);
@@ -394,3 +396,5 @@ void QtDBusScriptPlugin::initialize(const QString &key, QScriptEngine *engine)
Q_EXPORT_STATIC_PLUGIN(QtDBusScriptPlugin)
Q_EXPORT_PLUGIN2(qtscriptdbus, QtDBusScriptPlugin)
+
+#endif // QT_NO_DBUS
diff --git a/src/plugins/script/qtdbus/main.h b/src/plugins/script/qtdbus/main.h
index 8544247..bc2d8a3 100644
--- a/src/plugins/script/qtdbus/main.h
+++ b/src/plugins/script/qtdbus/main.h
@@ -46,6 +46,8 @@
#include <QtScript/qscriptable.h>
#include <QtScript/qscriptengine.h>
+#ifndef QT_NO_DBUS
+
class QDBusConnectionConstructor : public QObject,
public QScriptable
{
@@ -173,4 +175,5 @@ private:
QScriptValue proto;
};
+#endif // QT_NO_DBUS
#endif // QDBUSBINDING_H