-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 @@ #include <qlayout.h> #include <qlistbox.h> #include <qlabel.h> #include <qdir.h> #define DEFAULT_ROWS 2 #define DEFAULT_COLS 12 /* FunctionKeyboard {{{1 */ FunctionKeyboard::FunctionKeyboard(QWidget *parent) : QFrame(parent), numRows(DEFAULT_ROWS), numCols(DEFAULT_COLS), pressedRow(0), pressedCol(0) { setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed)); - /* - * all the saving/loading is now done in a profile. downside is that you cant modify - * the keyboard for all profiles, but must do it on a profile-basis - * - - Config conf("opie-console-keys"); - conf.setGroup("keys"); - for (uint r = 0; r < numRows; r++) - for (uint c = 0; c < numCols; c++) { - - QString handle = "r" + QString::number(r) + "c" + QString::number(c); - QStringList value_list = conf.readListEntry( handle, '|'); - - if (value_list.isEmpty()) continue; - - keys.insert( - - handle, - FKey (value_list[0], value_list[1], value_list[2].toUShort(), value_list[3].toUShort()) - ); - } - */ if (keys.isEmpty()) loadDefaults(); } FunctionKeyboard::~FunctionKeyboard() {} void FunctionKeyboard::changeRows(int r) { numRows = r; // have to do this so the whole thing gets redrawn hide(); show(); } void FunctionKeyboard::changeCols(int c) { |