author | erik <erik> | 2007-01-29 21:33:42 (UTC) |
---|---|---|
committer | erik <erik> | 2007-01-29 21:33:42 (UTC) |
commit | 777cace646507cf4222f0a6d5beb2cd44ec45a0a (patch) (unidiff) | |
tree | f6829136208c3f5929d82feffe0dd132194431e3 | |
parent | 5a58a5974cb4dd017e6989d5ebca876b5764b0df (diff) | |
download | opie-777cace646507cf4222f0a6d5beb2cd44ec45a0a.zip opie-777cace646507cf4222f0a6d5beb2cd44ec45a0a.tar.gz opie-777cace646507cf4222f0a6d5beb2cd44ec45a0a.tar.bz2 |
Strictly removal of cruft (commented out old code).
-rw-r--r-- | noncore/apps/opie-console/function_keyboard.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.cpp b/noncore/apps/opie-console/function_keyboard.cpp index 389618c..c3209f4 100644 --- a/noncore/apps/opie-console/function_keyboard.cpp +++ b/noncore/apps/opie-console/function_keyboard.cpp | |||
@@ -4,54 +4,32 @@ | |||
4 | #include <qlayout.h> | 4 | #include <qlayout.h> |
5 | #include <qlistbox.h> | 5 | #include <qlistbox.h> |
6 | #include <qlabel.h> | 6 | #include <qlabel.h> |
7 | #include <qdir.h> | 7 | #include <qdir.h> |
8 | 8 | ||
9 | #define DEFAULT_ROWS 2 | 9 | #define DEFAULT_ROWS 2 |
10 | #define DEFAULT_COLS 12 | 10 | #define DEFAULT_COLS 12 |
11 | 11 | ||
12 | /* FunctionKeyboard {{{1 */ | 12 | /* FunctionKeyboard {{{1 */ |
13 | 13 | ||
14 | FunctionKeyboard::FunctionKeyboard(QWidget *parent) : | 14 | FunctionKeyboard::FunctionKeyboard(QWidget *parent) : |
15 | QFrame(parent), numRows(DEFAULT_ROWS), numCols(DEFAULT_COLS), | 15 | QFrame(parent), numRows(DEFAULT_ROWS), numCols(DEFAULT_COLS), |
16 | pressedRow(0), pressedCol(0) { | 16 | pressedRow(0), pressedCol(0) { |
17 | 17 | ||
18 | setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed)); | 18 | setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed)); |
19 | 19 | ||
20 | /* | ||
21 | * all the saving/loading is now done in a profile. downside is that you cant modify | ||
22 | * the keyboard for all profiles, but must do it on a profile-basis | ||
23 | * | ||
24 | |||
25 | Config conf("opie-console-keys"); | ||
26 | conf.setGroup("keys"); | ||
27 | for (uint r = 0; r < numRows; r++) | ||
28 | for (uint c = 0; c < numCols; c++) { | ||
29 | |||
30 | QString handle = "r" + QString::number(r) + "c" + QString::number(c); | ||
31 | QStringList value_list = conf.readListEntry( handle, '|'); | ||
32 | |||
33 | if (value_list.isEmpty()) continue; | ||
34 | |||
35 | keys.insert( | ||
36 | |||
37 | handle, | ||
38 | FKey (value_list[0], value_list[1], value_list[2].toUShort(), value_list[3].toUShort()) | ||
39 | ); | ||
40 | } | ||
41 | */ | ||
42 | if (keys.isEmpty()) loadDefaults(); | 20 | if (keys.isEmpty()) loadDefaults(); |
43 | 21 | ||
44 | 22 | ||
45 | 23 | ||
46 | } | 24 | } |
47 | 25 | ||
48 | FunctionKeyboard::~FunctionKeyboard() {} | 26 | FunctionKeyboard::~FunctionKeyboard() {} |
49 | 27 | ||
50 | void FunctionKeyboard::changeRows(int r) { | 28 | void FunctionKeyboard::changeRows(int r) { |
51 | 29 | ||
52 | numRows = r; | 30 | numRows = r; |
53 | 31 | ||
54 | // have to do this so the whole thing gets redrawn | 32 | // have to do this so the whole thing gets redrawn |
55 | hide(); show(); | 33 | hide(); show(); |
56 | } | 34 | } |
57 | void FunctionKeyboard::changeCols(int c) { | 35 | void FunctionKeyboard::changeCols(int c) { |