author | zecke <zecke> | 2004-08-25 21:27:14 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-08-25 21:27:14 (UTC) |
commit | 656d233aa88a92b461abaa618e52db11c1f9d625 (patch) (unidiff) | |
tree | 93309884e5b5765a1750074125c437a067d5421f /library | |
parent | 834a1cfd0367f7c2ed6e250666624104c450d542 (diff) | |
download | opie-656d233aa88a92b461abaa618e52db11c1f9d625.zip opie-656d233aa88a92b461abaa618e52db11c1f9d625.tar.gz opie-656d233aa88a92b461abaa618e52db11c1f9d625.tar.bz2 |
Do not make the files depend on external defines. This confuses
the 'moc' as it doesn't have a preprocessor in Qt2 and Qt3
-rw-r--r-- | library/backend/rohfeedback.cpp | 2 | ||||
-rw-r--r-- | library/backend/rohfeedback.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/library/backend/rohfeedback.cpp b/library/backend/rohfeedback.cpp index 9a19aac..fa2a636 100644 --- a/library/backend/rohfeedback.cpp +++ b/library/backend/rohfeedback.cpp | |||
@@ -8,25 +8,24 @@ | |||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifdef OPIE_WITHROHFEEDBACK | ||
21 | 20 | ||
22 | #include <rohfeedback.h> | 21 | #include <rohfeedback.h> |
23 | #include <stdio.h> | 22 | #include <stdio.h> |
24 | #include <qpeapplication.h> | 23 | #include <qpeapplication.h> |
25 | #include <qevent.h> | 24 | #include <qevent.h> |
26 | #include <resource.h> | 25 | #include <resource.h> |
27 | #include <qpixmap.h> | 26 | #include <qpixmap.h> |
28 | #include <qbitmap.h> | 27 | #include <qbitmap.h> |
29 | 28 | ||
30 | #define SPEED 600 | 29 | #define SPEED 600 |
31 | #define DELAY 500 | 30 | #define DELAY 500 |
32 | 31 | ||
@@ -132,13 +131,12 @@ void RoHFeedback::iconShow( void ) { | |||
132 | // show | 131 | // show |
133 | 132 | ||
134 | setPixmap( *(Imgs[IconNr]) ); | 133 | setPixmap( *(Imgs[IconNr]) ); |
135 | setMask( *(Masks[IconNr]) ); | 134 | setMask( *(Masks[IconNr]) ); |
136 | IconNr = (IconNr+1)%NOOFICONS; // rotate | 135 | IconNr = (IconNr+1)%NOOFICONS; // rotate |
137 | break; | 136 | break; |
138 | } | 137 | } |
139 | } | 138 | } |
140 | 139 | ||
141 | } | 140 | } |
142 | } | 141 | } |
143 | 142 | ||
144 | #endif | ||
diff --git a/library/backend/rohfeedback.h b/library/backend/rohfeedback.h index 774ee85..2961d0e 100644 --- a/library/backend/rohfeedback.h +++ b/library/backend/rohfeedback.h | |||
@@ -11,25 +11,24 @@ | |||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef ROHFEEDBACK_H | 20 | #ifndef ROHFEEDBACK_H |
21 | #define ROHFEEDBACK_H | 21 | #define ROHFEEDBACK_H |
22 | 22 | ||
23 | #ifdef OPIE_WITHROHFEEDBACK | ||
24 | 23 | ||
25 | /* | 24 | /* |
26 | 25 | ||
27 | RightOnHold feedback show | 26 | RightOnHold feedback show |
28 | 27 | ||
29 | */ | 28 | */ |
30 | 29 | ||
31 | #define NOOFICONS 5 | 30 | #define NOOFICONS 5 |
32 | 31 | ||
33 | #include <qlabel.h> | 32 | #include <qlabel.h> |
34 | #include <qtimer.h> | 33 | #include <qtimer.h> |
35 | 34 | ||
@@ -72,13 +71,12 @@ protected : | |||
72 | int IconNr; | 71 | int IconNr; |
73 | QWidget * Receiver; | 72 | QWidget * Receiver; |
74 | 73 | ||
75 | static int IconWidth; | 74 | static int IconWidth; |
76 | static int IconHeight; | 75 | static int IconHeight; |
77 | static QPixmap * Imgs[NOOFICONS]; | 76 | static QPixmap * Imgs[NOOFICONS]; |
78 | static QBitmap * Masks[NOOFICONS]; | 77 | static QBitmap * Masks[NOOFICONS]; |
79 | }; | 78 | }; |
80 | } | 79 | } |
81 | } | 80 | } |
82 | 81 | ||
83 | #endif | 82 | #endif |
84 | #endif | ||