From 586ba5bb2842d80911ea22bf47eaa2f1b39362e1 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 04 Nov 2004 22:03:38 +0000 Subject: Revert last commit and create a QCOP Channel for QPE/System in ODevice again, as OApplication doesn't expose the signal anymore --- diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index e57cdef..39b37cd 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp @@ -645,10 +645,11 @@ const ODeviceButton *ODevice::buttonForKeycode ( ushort code ) void ODevice::reloadButtonMapping() { if(!d->m_buttons) - initButtons(); + initButtons(); if(!d->m_initializedButtonQcop) { - connect(qApp,SIGNAL(systemMessageSignal(const QCString&,const QByteArray&)), + QCopChannel *chan = new QCopChannel("QPE/System", this, "ODevice button channel"); + connect(chan,SIGNAL(received(const QCString&,const QByteArray&)), this,SLOT(systemMessage(const QCString&,const QByteArray&))); d->m_initializedButtonQcop = true; } -- cgit v0.9.0.2