Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 639260
Collapse All | Expand All

(-)a/include/mico/qtmico.h (-10 / +2 lines)
Lines 27-43 Link Here
27
#ifndef __MICO_QT_H__
27
#ifndef __MICO_QT_H__
28
#define __MICO_QT_H__
28
#define __MICO_QT_H__
29
29
30
#ifdef HAVE_QAPPLICATION_H
30
#include <qcoreapplication.h>
31
#include <qapplication.h>
32
#else // HAVE_QAPPLICATION_H
33
#include <qapp.h>
34
#endif // HAVE_QAPPLICATION_H
35
31
36
#ifdef HAVE_QSOCKETNOTIFIER_H
37
#include <qsocketnotifier.h>
32
#include <qsocketnotifier.h>
38
#else // HAVE_QSOCKETNOTIFIER_H
39
#include <qsocknot.h>
40
#endif // HAVE_QSOCKETNOTIFIER_H
41
33
42
#include <qtimer.h>
34
#include <qtimer.h>
43
#include <CORBA.h>
35
#include <CORBA.h>
Lines 45-51 Link Here
45
class QTDispatcher; // forward
37
class QTDispatcher; // forward
46
38
47
class CApp
39
class CApp
48
    : public QApplication
40
    : public QCoreApplication
49
{
41
{
50
    Q_OBJECT
42
    Q_OBJECT
51
    QTDispatcher* qtd_;
43
    QTDispatcher* qtd_;
(-)a/auxdir/qtmico.cc (-5 / +7 lines)
Lines 36-42 using namespace std; Link Here
36
// CApp
36
// CApp
37
//
37
//
38
CApp::CApp(int argc, char *argv[])
38
CApp::CApp(int argc, char *argv[])
39
    : QApplication (argc,argv)
39
    : QCoreApplication (argc,argv)
40
{
40
{
41
    qtd_ = new QTDispatcher (this);
41
    qtd_ = new QTDispatcher (this);
42
    connect(this, SIGNAL(aboutToQuit()), this, SLOT(shutdown()));
42
    connect(this, SIGNAL(aboutToQuit()), this, SLOT(shutdown()));
Lines 92-98 TimerEvent::TimerEvent Link Here
92
    : xid_(new QTimer()), cb_(cb), disp_(disp)
92
    : xid_(new QTimer()), cb_(cb), disp_(disp)
93
{
93
{
94
    QObject::connect(xid_, SIGNAL (timeout()), this, SLOT (timeout()));
94
    QObject::connect(xid_, SIGNAL (timeout()), this, SLOT (timeout()));
95
    xid_->start(tmout, TRUE);
95
    xid_->setSingleShot(true);
96
    xid_->start(tmout);
96
}
97
}
97
98
98
void
99
void
Lines 196-204 QTDispatcher::remove(TimerEvent *t) Link Here
196
void
197
void
197
QTDispatcher::run(CORBA::Boolean infinite)
198
QTDispatcher::run(CORBA::Boolean infinite)
198
{
199
{
199
    do {
200
    if (infinite)
200
	ctx_->processOneEvent();
201
      ctx_->processEvents(QEventLoop::WaitForMoreEvents);
201
    } while (infinite);
202
    else
203
      ctx_->processEvents();
202
}
204
}
203
205
204
void
206
void

Return to bug 639260