summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/function_keyboard.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.cpp b/noncore/apps/opie-console/function_keyboard.cpp
index e7f3c21..9e456df 100644
--- a/noncore/apps/opie-console/function_keyboard.cpp
+++ b/noncore/apps/opie-console/function_keyboard.cpp
@@ -209,67 +209,67 @@ void FunctionKeyboard::mouseReleaseEvent(QMouseEvent *) {
209 209
210} 210}
211 211
212 212
213void FunctionKeyboard::resizeEvent(QResizeEvent*) { 213void FunctionKeyboard::resizeEvent(QResizeEvent*) {
214 214
215 /* set he default font height/width */ 215 /* set he default font height/width */
216 QFontMetrics fm=fontMetrics(); 216 QFontMetrics fm=fontMetrics();
217 keyHeight = fm.lineSpacing() + 2; 217 keyHeight = fm.lineSpacing() + 2;
218 keyWidth = (double)width()/numCols; 218 keyWidth = (double)width()/numCols;
219 219
220} 220}
221 221
222QSize FunctionKeyboard::sizeHint() const { 222QSize FunctionKeyboard::sizeHint() const {
223 223
224 return QSize(width(), keyHeight * numRows + 1); 224 return QSize(width(), keyHeight * numRows + 1);
225} 225}
226 226
227void FunctionKeyboard::loadDefaults() { 227void FunctionKeyboard::loadDefaults() {
228 228
229 numRows = DEFAULT_ROWS; 229 numRows = DEFAULT_ROWS;
230 numCols = DEFAULT_COLS; 230 numCols = DEFAULT_COLS;
231 keyWidth = (double)width()/numCols; // have to reset this thing too 231 keyWidth = (double)width()/numCols; // have to reset this thing too
232 232
233 keys.insert( "r0c0", FKey ("Enter", "enter", Qt::Key_Enter, 0)); 233 keys.insert( "r0c0", FKey ("Enter", "enter", Qt::Key_Enter, 0));
234 keys.insert( "r0c1", FKey ("Space", "space", Qt::Key_Space, Qt::Key_Space)); 234 keys.insert( "r0c1", FKey ("Space", "space", Qt::Key_Space, Qt::Key_Space));
235 keys.insert( "r0c2", FKey ("Tab", "tab", Qt::Key_Tab, 0)); 235 keys.insert( "r0c2", FKey ("Tab", "tab", Qt::Key_Tab, 0));
236 keys.insert( "r0c3", FKey ("Up", "up", Qt::Key_Up, 0)); 236 keys.insert( "r0c3", FKey ("Up", "up", Qt::Key_Up, 0));
237 keys.insert( "r0c4", FKey ("Down", "down", Qt::Key_Down, 0)); 237 keys.insert( "r0c4", FKey ("Down", "down", Qt::Key_Down, 0));
238 238
239 keys.insert( "r0c7", FKey ("Ho", 0, 4112, 0)); 239 keys.insert( "r0c7", FKey ("Ho", 0, 4112, 0));
240 keys.insert( "r0c8", FKey ("End", 0, 4113, 0)); 240 keys.insert( "r0c8", FKey ("End", 0, 4113, 0));
241 keys.insert( "r0c9", FKey ("PU", 0, 4118, 0)); 241 keys.insert( "r0c9", FKey ("Pu", 0, 4118, 0));
242 keys.insert( "r0c10", FKey ("PD", 0, 4119, 0)); 242 keys.insert( "r0c10", FKey ("Pd", 0, 4119, 0));
243 keys.insert( "r0c11", FKey ("esc", 0, Qt::Key_Escape, 0xfff)); 243 keys.insert( "r0c11", FKey ("Esc", 0, Qt::Key_Escape, 0xfff));
244 244
245 keys.insert( "r1c0", FKey ("F1", 0, 4144, 0)); 245 keys.insert( "r1c0", FKey ("F1", 0, 4144, 0));
246 keys.insert( "r1c1", FKey ("F2", 0, 4145, 0)); 246 keys.insert( "r1c1", FKey ("F2", 0, 4145, 0));
247 keys.insert( "r1c2", FKey ("F3", 0, 4146, 0)); 247 keys.insert( "r1c2", FKey ("F3", 0, 4146, 0));
248 keys.insert( "r1c3", FKey ("F4", 0, 4147, 0)); 248 keys.insert( "r1c3", FKey ("F4", 0, 4147, 0));
249 keys.insert( "r1c4", FKey ("F5", 0, 4148, 0)); 249 keys.insert( "r1c4", FKey ("F5", 0, 4148, 0));
250 keys.insert( "r1c5", FKey ("F6", 0, 4149, 0)); 250 keys.insert( "r1c5", FKey ("F6", 0, 4149, 0));
251 keys.insert( "r1c6", FKey ("F7", 0, 4150, 0)); 251 keys.insert( "r1c6", FKey ("F7", 0, 4150, 0));
252 keys.insert( "r1c7", FKey ("F8", 0, 4151, 0)); 252 keys.insert( "r1c7", FKey ("F8", 0, 4151, 0));
253 keys.insert( "r1c8", FKey ("F9", 0, 4152, 0)); 253 keys.insert( "r1c8", FKey ("F9", 0, 4152, 0));
254 keys.insert( "r1c9", FKey ("F10", 0, 4153, 0)); 254 keys.insert( "r1c9", FKey ("F10", 0, 4153, 0));
255 keys.insert( "r1c10", FKey ("F11", 0, 4154, 0)); 255 keys.insert( "r1c10", FKey ("F11", 0, 4154, 0));
256 keys.insert( "r1c11", FKey ("F12", 0, 4155, 0)); 256 keys.insert( "r1c11", FKey ("F12", 0, 4155, 0));
257 257
258 258
259} 259}
260 260
261/* FunctionKeyboardConfig {{{1 */ 261/* FunctionKeyboardConfig {{{1 */
262 262
263FunctionKeyboardConfig::FunctionKeyboardConfig(const QString& name, QWidget* parent, const char* na ) 263FunctionKeyboardConfig::FunctionKeyboardConfig(const QString& name, QWidget* parent, const char* na )
264 : ProfileDialogKeyWidget(name, parent, na), 264 : ProfileDialogKeyWidget(name, parent, na),
265 selectedRow(0), selectedCol(0) 265 selectedRow(0), selectedCol(0)
266{ 266{
267 qWarning("FunctionKeyboardConfig"); 267 qWarning("FunctionKeyboardConfig");
268 268
269 269
270 kb = new FunctionKeyboard(this); 270 kb = new FunctionKeyboard(this);
271 connect (kb, SIGNAL(keyPressed(FKey, ushort, ushort, bool)), 271 connect (kb, SIGNAL(keyPressed(FKey, ushort, ushort, bool)),
272 this, SLOT(slotKeyPressed(FKey, ushort, ushort, bool))); 272 this, SLOT(slotKeyPressed(FKey, ushort, ushort, bool)));
273 273
274 QGroupBox *dimentions = new QGroupBox(2, Qt::Horizontal, tr("Dimentions"), this); 274 QGroupBox *dimentions = new QGroupBox(2, Qt::Horizontal, tr("Dimentions"), this);
275 QLabel *l = new QLabel("Rows", dimentions); 275 QLabel *l = new QLabel("Rows", dimentions);