-rw-r--r-- | library/qpeapplication.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index acad81d..35f433c 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -131,5 +131,7 @@ public: smallIconSize = cfg.readNumEntry( "SmallIconSize", 14 ); bigIconSize = cfg.readNumEntry( "BigIconSize", 32 ); +#ifdef OPIE_ROHFEEDBACK RoH = 0; +#endif } @@ -137,4 +139,7 @@ public: QWidget* presswidget; QPoint presspos; +#ifdef OPIE_ROHFEEDBACK + Opie::Internal::RoHFeedback *RoH; +#endif bool rightpressed : 1; @@ -498,6 +503,4 @@ static void qpe_show_dialog( QDialog* d, bool nomax ) } } - - Opie::Internal::RoHFeedback * RoH; }; @@ -1213,5 +1216,7 @@ QPEApplication::~QPEApplication() delete pidChannel; #endif +#ifdef OPIE_ROHFEEDBACK delete d->RoH; +#endif delete d; } @@ -2036,5 +2041,5 @@ bool QPEApplication::eventFilter( QObject *o, QEvent *e ) // just for the time being static int pref = 500; -#ifdef WITHROHFEEDBACK +#ifdef OPIE_ROHFEEDBACK if( ! d->RoH ) d->RoH = new Opie::Internal::RoHFeedback; @@ -2051,5 +2056,5 @@ bool QPEApplication::eventFilter( QObject *o, QEvent *e ) if (d->presstimer && (me->pos() - d->presspos).manhattanLength() > 8) { killTimer(d->presstimer); -#ifdef WITHROHFEEDBACK +#ifdef OPIE_ROHFEEDBACK if( d->RoH ) d->RoH->stop( ); @@ -2062,5 +2067,5 @@ bool QPEApplication::eventFilter( QObject *o, QEvent *e ) if ( d->presstimer ) { killTimer(d->presstimer); -#ifdef WITHROHFEEDBACK +#ifdef OPIE_ROHFEEDBACK if( d->RoH ) d->RoH->stop( ); @@ -2119,5 +2124,7 @@ void QPEApplication::timerEvent( QTimerEvent *e ) d->presstimer = 0; d->rightpressed = TRUE; +#ifdef OPIE_ROHFEEDBACK d->RoH->stop(); +#endif } } |