summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/function_keyboard.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.cpp b/noncore/apps/opie-console/function_keyboard.cpp
index ce65052..5f3b5ec 100644
--- a/noncore/apps/opie-console/function_keyboard.cpp
+++ b/noncore/apps/opie-console/function_keyboard.cpp
@@ -15,2 +15,5 @@
+#define DEFAULT_ROWS 2
+#define DEFAULT_COLS 11
+
/* FunctionKeyboard {{{1 */
@@ -18,3 +21,3 @@
FunctionKeyboard::FunctionKeyboard(QWidget *parent) :
- QFrame(parent), numRows(2), numCols(11),
+ QFrame(parent), numRows(DEFAULT_ROWS), numCols(DEFAULT_COLS),
pressedRow(0), pressedCol(0) {
@@ -225,2 +228,6 @@ void FunctionKeyboard::loadDefaults() {
+ numRows = DEFAULT_ROWS;
+ numCols = DEFAULT_COLS;
+ keyWidth = (double)width()/numCols; // have to reset this thing too
+
keys.insert( "r0c0", FKey ("Enter", "enter", Qt::Key_Enter, 0));