-rw-r--r-- | inputmethods/multikey/keyboard.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp index bded447..2ce6dd3 100644 --- a/inputmethods/multikey/keyboard.cpp +++ b/inputmethods/multikey/keyboard.cpp @@ -41,2 +41,14 @@ using namespace MultiKey; +static const char * const kb_config_xpm[] = { +"13 7 2 1", +" c None", +". c #000000", +" ", +" . ", +" ... ", +" ..... ", +" . ", +" . ", +" "}; + /* Keyboard::Keyboard {{{1 */ @@ -1524,3 +1536,8 @@ void Keys::setKeysFromFile(const char * filename) { } + f.close(); + } else { + // We couldnt find the selected keymap, give them a configure button + QImage * btn = new QImage((const char ** )kb_config_xpm); + setKey(1, 0x1030, 0, 2, btn); } @@ -1529,2 +1546,3 @@ void Keys::setKeysFromFile(const char * filename) { + // Keys::setKey {{{2 |