Commit 290b027c authored by Josef Weidendorfer's avatar Josef Weidendorfer
Browse files

Fix compilation with Qt not compiled with DBus.

svn path=/trunk/KDE/kdesdk/kcachegrind/; revision=1199867
parent 3a0c9f81
TEMPLATE = app
QT += qt3support
unix:QT += dbus
contains(QT_CONFIG, dbus) {
DEFINES += QT_DBUS_SUPPORT
QT += dbus
}
OBJECTS_DIR = $$OUT_PWD/../.obj
......
......@@ -40,10 +40,13 @@
#include <QToolBar>
#include <QComboBox>
#include <QMessageBox>
#include <QtDBus/QDBusConnection>
#include <QStatusBar>
#include <QWhatsThis>
#ifdef QT_DBUS_SUPPORT
#include <QtDBus/QDBusConnection>
#endif
#include "partselection.h"
#include "functionselection.h"
#include "stackselection.h"
......@@ -57,7 +60,7 @@
QCGTopLevel::QCGTopLevel()
{
#ifndef QT_NO_DBUS
#ifdef QT_DBUS_SUPPORT
QDBusConnection con = QDBusConnection::sessionBus();
con.registerObject("/QCachegrind", this,
QDBusConnection::ExportScriptableSlots);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment