summaryrefslogtreecommitdiff
path: root/inputmethods/jumpx/keyboard.cpp
Unidiff
Diffstat (limited to 'inputmethods/jumpx/keyboard.cpp') (more/less context) (show whitespace changes)
-rw-r--r--inputmethods/jumpx/keyboard.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/inputmethods/jumpx/keyboard.cpp b/inputmethods/jumpx/keyboard.cpp
index 0cfb4be..79f0d5d 100644
--- a/inputmethods/jumpx/keyboard.cpp
+++ b/inputmethods/jumpx/keyboard.cpp
@@ -8,13 +8,13 @@
8** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 8** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 9** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10** 10**
11*********************************************************************************************/ 11*********************************************************************************************/
12#include "keyboard.h" 12#include "keyboard.h"
13 13
14#include <qpe/resource.h> 14#include <opie2/oresource.h>
15 15
16//#include <iostream.h> 16//#include <iostream.h>
17 17
18 18
19static const int autorepeatDelaytime = 500; // ms 19static const int autorepeatDelaytime = 500; // ms
20static const int autorepeatRate = 20; // chars per second 20static const int autorepeatRate = 20; // chars per second
@@ -134,31 +134,31 @@ Keyboard::Keyboard(QWidget* parent, const char* name, WFlags f) :
134 slideKeyUnicodeH(0), slideKeyQcodeH(0), slideKeyUnicodeV(0), slideKeyQcodeV(0), 134 slideKeyUnicodeH(0), slideKeyQcodeH(0), slideKeyUnicodeV(0), slideKeyQcodeV(0),
135 enableMouseTracking(false), slidePix(NULL), slidePixH(NULL), slidePixV(NULL), 135 enableMouseTracking(false), slidePix(NULL), slidePixH(NULL), slidePixV(NULL),
136 releasedPix(NULL), pressedPix(NULL) 136 releasedPix(NULL), pressedPix(NULL)
137{ 137{
138 //setPalette(QPalette(QColor(240,240,230))); // Beige! 138 //setPalette(QPalette(QColor(240,240,230))); // Beige!
139 139
140 releasedPlain = releasedShift = releasedParen = Resource::loadPixmap("jumpx/released"); 140 releasedPlain = releasedShift = releasedParen = Opie::Core::OResource::loadPixmap("jumpx/released");
141 pressedPlain = pressedShift = pressedParen = Resource::loadPixmap("jumpx/pressed"); 141 pressedPlain = pressedShift = pressedParen = Opie::Core::OResource::loadPixmap("jumpx/pressed");
142 pressedDigit = Resource::loadPixmap("jumpx/pressed"); 142 pressedDigit = Opie::Core::OResource::loadPixmap("jumpx/pressed");
143 143
144 QPixmap tmp; 144 QPixmap tmp;
145 145
146 tmp = Resource::loadPixmap("jumpx/releasedShift"); 146 tmp = Opie::Core::OResource::loadPixmap("jumpx/releasedShift");
147 bitBlt(&releasedShift, letterx1, 0, &tmp); 147 bitBlt(&releasedShift, letterx1, 0, &tmp);
148 148
149 tmp = Resource::loadPixmap("jumpx/releasedParen"); 149 tmp = Opie::Core::OResource::loadPixmap("jumpx/releasedParen");
150 bitBlt(&releasedParen, specialx1, 0, &tmp); 150 bitBlt(&releasedParen, specialx1, 0, &tmp);
151 151
152 tmp = Resource::loadPixmap("jumpx/pressedShift"); 152 tmp = Opie::Core::OResource::loadPixmap("jumpx/pressedShift");
153 bitBlt(&pressedShift, letterx1, 0, &tmp); 153 bitBlt(&pressedShift, letterx1, 0, &tmp);
154 154
155 tmp = Resource::loadPixmap("jumpx/pressedParen"); 155 tmp = Opie::Core::OResource::loadPixmap("jumpx/pressedParen");
156 bitBlt(&pressedParen, specialx1, 0, &tmp); 156 bitBlt(&pressedParen, specialx1, 0, &tmp);
157 157
158 tmp = Resource::loadPixmap("jumpx/pressedDigit"); 158 tmp = Opie::Core::OResource::loadPixmap("jumpx/pressedDigit");
159 bitBlt(&pressedDigit, specialx1, 0, &tmp); 159 bitBlt(&pressedDigit, specialx1, 0, &tmp);
160 160
161 offscreen = QPixmap( releasedPlain ); 161 offscreen = QPixmap( releasedPlain );
162 162
163 releasedPix = &releasedPlain; 163 releasedPix = &releasedPlain;
164 pressedPix = &pressedPlain; 164 pressedPix = &pressedPlain;