author | zecke <zecke> | 2003-10-02 19:50:57 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-10-02 19:50:57 (UTC) |
commit | a5622a23c3083e1ff8a526713aed6a36aaf7a5bd (patch) (side-by-side diff) | |
tree | a11dd920c777ebceee2026e573d4e0111875174c /library | |
parent | b262f4cbe41c144c472f17996a8739952464e00c (diff) | |
download | opie-a5622a23c3083e1ff8a526713aed6a36aaf7a5bd.zip opie-a5622a23c3083e1ff8a526713aed6a36aaf7a5bd.tar.gz opie-a5622a23c3083e1ff8a526713aed6a36aaf7a5bd.tar.bz2 |
Move the #ifdef so that the code actually compiles if the expression
is not true
-rw-r--r-- | library/qpeapplication.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 98af70a..0e469ae 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -134,37 +134,38 @@ public: QGuardedPtr<QWidget> lastraised; QQueue<QCopRec> qcopq; QString styleName; QString decorationName; void enqueueQCop( const QCString &ch, const QCString &msg, const QByteArray &data ) { qcopq.enqueue( new QCopRec( ch, msg, data ) ); } void sendQCopQ() { if (!qcopQok ) return; QCopRec * r; -#ifndef QT_NO_COP + while((r=qcopq.dequeue())) { // remove from queue before sending... // event loop can come around again before getting // back from sendLocally +#ifndef QT_NO_COP QCopChannel::sendLocally( r->channel, r->message, r->data ); #endif delete r; } } static void show_mx(QWidget* mw, bool nomaximize, const QString & = QString::null ) { // ugly hack, remove that later after finding a sane solution // Addendum: Only Sharp currently has models with high resolution but (physically) small displays, // so this is only useful if QT_QWS_SIMPAD is NOT defined. E.g. SIMpad has 800x600 but has // a (physically) large enough display to use the small icons #ifndef QT_QWS_SIMPAD if ( QPEApplication::desktop() ->width() >= 600 && ( mw->inherits("QMainWindow") || mw->isA("QMainWindow") ) ) { ( ( QMainWindow* ) mw )->setUsesBigPixmaps( true ); |