author | davipt <davipt> | 2002-06-28 13:36:05 (UTC) |
---|---|---|
committer | davipt <davipt> | 2002-06-28 13:36:05 (UTC) |
commit | d4626cc76127b7022c8555ea11afbb289714c851 (patch) (unidiff) | |
tree | 3c4606b2574285f324c21ef78fd47ba6e55d8219 | |
parent | a94b5ab5cee9922fc02deb14a252b0c998dde1f7 (diff) | |
download | opie-d4626cc76127b7022c8555ea11afbb289714c851.zip opie-d4626cc76127b7022c8555ea11afbb289714c851.tar.gz opie-d4626cc76127b7022c8555ea11afbb289714c851.tar.bz2 |
Fix bug #9 except that we need something else to translate keyboard names.
-rw-r--r-- | inputmethods/dvorak/dvorakimpl.cpp | 4 | ||||
-rw-r--r-- | inputmethods/handwriting/handwritingimpl.cpp | 3 | ||||
-rw-r--r-- | inputmethods/jumpx/keyboardimpl.cpp | 3 | ||||
-rw-r--r-- | inputmethods/keyboard/keyboardimpl.cpp | 4 | ||||
-rw-r--r-- | inputmethods/kjumpx/keyboardimpl.cpp | 3 | ||||
-rw-r--r-- | inputmethods/pickboard/pickboardimpl.cpp | 3 | ||||
-rw-r--r-- | inputmethods/unikeyboard/unikeyboardimpl.cpp | 3 |
7 files changed, 14 insertions, 9 deletions
diff --git a/inputmethods/dvorak/dvorakimpl.cpp b/inputmethods/dvorak/dvorakimpl.cpp index 5b83b8f..d58b6b9 100644 --- a/inputmethods/dvorak/dvorakimpl.cpp +++ b/inputmethods/dvorak/dvorakimpl.cpp | |||
@@ -95,18 +95,18 @@ QPixmap *KeyboardImpl::icon() | |||
95 | { | 95 | { |
96 | if ( !icn ) | 96 | if ( !icn ) |
97 | icn = new QPixmap( (const char **)kb_xpm ); | 97 | icn = new QPixmap( (const char **)kb_xpm ); |
98 | return icn; | 98 | return icn; |
99 | } | 99 | } |
100 | 100 | ||
101 | QString KeyboardImpl::name() | 101 | QString KeyboardImpl::name() |
102 | { | 102 | { |
103 | return qApp->translate( "InputMethods", "Dvorak" ); | 103 | // return qApp->translate( "InputMethods", "Dvorak" ); |
104 | // return qApp->translate( "InputMethods", "Opti" ); | 104 | return "Dvorak"; |
105 | } | 105 | } |
106 | 106 | ||
107 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 107 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
108 | { | 108 | { |
109 | if ( input ) | 109 | if ( input ) |
110 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 110 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
111 | } | 111 | } |
112 | 112 | ||
diff --git a/inputmethods/handwriting/handwritingimpl.cpp b/inputmethods/handwriting/handwritingimpl.cpp index c39e1aa..0ea140c 100644 --- a/inputmethods/handwriting/handwritingimpl.cpp +++ b/inputmethods/handwriting/handwritingimpl.cpp | |||
@@ -78,17 +78,18 @@ QPixmap *HandwritingImpl::icon() | |||
78 | { | 78 | { |
79 | if ( !icn ) | 79 | if ( !icn ) |
80 | icn = new QPixmap( (const char **)pen_xpm ); | 80 | icn = new QPixmap( (const char **)pen_xpm ); |
81 | return icn; | 81 | return icn; |
82 | } | 82 | } |
83 | 83 | ||
84 | QString HandwritingImpl::name() | 84 | QString HandwritingImpl::name() |
85 | { | 85 | { |
86 | return qApp->translate( "InputMethods", "Handwriting" ); | 86 | // return qApp->translate( "InputMethods", "Handwriting" ); |
87 | return "Handwriting"; | ||
87 | } | 88 | } |
88 | 89 | ||
89 | void HandwritingImpl::onKeyPress( QObject *receiver, const char *slot ) | 90 | void HandwritingImpl::onKeyPress( QObject *receiver, const char *slot ) |
90 | { | 91 | { |
91 | if ( input ) | 92 | if ( input ) |
92 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 93 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
93 | } | 94 | } |
94 | 95 | ||
diff --git a/inputmethods/jumpx/keyboardimpl.cpp b/inputmethods/jumpx/keyboardimpl.cpp index 92abb09..004f0b0 100644 --- a/inputmethods/jumpx/keyboardimpl.cpp +++ b/inputmethods/jumpx/keyboardimpl.cpp | |||
@@ -62,17 +62,18 @@ QPixmap *KeyboardImpl::icon() | |||
62 | { | 62 | { |
63 | if ( !icn ) | 63 | if ( !icn ) |
64 | icn = new QPixmap( (const char **)icon_xpm ); | 64 | icn = new QPixmap( (const char **)icon_xpm ); |
65 | return icn; | 65 | return icn; |
66 | } | 66 | } |
67 | 67 | ||
68 | QString KeyboardImpl::name() | 68 | QString KeyboardImpl::name() |
69 | { | 69 | { |
70 | return qApp->translate( "InputMethods", "JumpX" ); | 70 | // return qApp->translate( "InputMethods", "JumpX" ); |
71 | return "JumpX"; | ||
71 | } | 72 | } |
72 | 73 | ||
73 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 74 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
74 | { | 75 | { |
75 | if ( input ) | 76 | if ( input ) |
76 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 77 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
77 | } | 78 | } |
78 | 79 | ||
diff --git a/inputmethods/keyboard/keyboardimpl.cpp b/inputmethods/keyboard/keyboardimpl.cpp index ea61272..56e6870 100644 --- a/inputmethods/keyboard/keyboardimpl.cpp +++ b/inputmethods/keyboard/keyboardimpl.cpp | |||
@@ -95,18 +95,18 @@ QPixmap *KeyboardImpl::icon() | |||
95 | { | 95 | { |
96 | if ( !icn ) | 96 | if ( !icn ) |
97 | icn = new QPixmap( (const char **)kb_xpm ); | 97 | icn = new QPixmap( (const char **)kb_xpm ); |
98 | return icn; | 98 | return icn; |
99 | } | 99 | } |
100 | 100 | ||
101 | QString KeyboardImpl::name() | 101 | QString KeyboardImpl::name() |
102 | { | 102 | { |
103 | return qApp->translate( "InputMethods", "Keyboard" ); | 103 | // return qApp->translate( "InputMethods", "Keyboard" ); |
104 | // return qApp->translate( "InputMethods", "Opti" ); | 104 | return "Keyboard"; |
105 | } | 105 | } |
106 | 106 | ||
107 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 107 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
108 | { | 108 | { |
109 | if ( input ) | 109 | if ( input ) |
110 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 110 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
111 | } | 111 | } |
112 | 112 | ||
diff --git a/inputmethods/kjumpx/keyboardimpl.cpp b/inputmethods/kjumpx/keyboardimpl.cpp index 5d8e0d3..dbae2b4 100644 --- a/inputmethods/kjumpx/keyboardimpl.cpp +++ b/inputmethods/kjumpx/keyboardimpl.cpp | |||
@@ -62,17 +62,18 @@ QPixmap *KeyboardImpl::icon() | |||
62 | { | 62 | { |
63 | if ( !icn ) | 63 | if ( !icn ) |
64 | icn = new QPixmap( (const char **)icon_xpm ); | 64 | icn = new QPixmap( (const char **)icon_xpm ); |
65 | return icn; | 65 | return icn; |
66 | } | 66 | } |
67 | 67 | ||
68 | QString KeyboardImpl::name() | 68 | QString KeyboardImpl::name() |
69 | { | 69 | { |
70 | return qApp->translate( "InputMethods", "KJumpX" ); | 70 | // return qApp->translate( "InputMethods", "KJumpX" ); |
71 | return "KJumpX"; | ||
71 | } | 72 | } |
72 | 73 | ||
73 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 74 | void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
74 | { | 75 | { |
75 | if ( input ) | 76 | if ( input ) |
76 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 77 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
77 | } | 78 | } |
78 | 79 | ||
diff --git a/inputmethods/pickboard/pickboardimpl.cpp b/inputmethods/pickboard/pickboardimpl.cpp index a4e8f02..617acff 100644 --- a/inputmethods/pickboard/pickboardimpl.cpp +++ b/inputmethods/pickboard/pickboardimpl.cpp | |||
@@ -65,17 +65,18 @@ QPixmap *PickboardImpl::icon() | |||
65 | { | 65 | { |
66 | if ( !icn ) | 66 | if ( !icn ) |
67 | icn = new QPixmap( (const char **)pb_xpm ); | 67 | icn = new QPixmap( (const char **)pb_xpm ); |
68 | return icn; | 68 | return icn; |
69 | } | 69 | } |
70 | 70 | ||
71 | QString PickboardImpl::name() | 71 | QString PickboardImpl::name() |
72 | { | 72 | { |
73 | return qApp->translate( "InputMethods", "Pickboard" ); | 73 | // return qApp->translate( "InputMethods", "Pickboard" ); |
74 | return "Pickboard"; | ||
74 | } | 75 | } |
75 | 76 | ||
76 | void PickboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 77 | void PickboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
77 | { | 78 | { |
78 | if ( pickboard ) | 79 | if ( pickboard ) |
79 | QObject::connect( pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 80 | QObject::connect( pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
80 | } | 81 | } |
81 | 82 | ||
diff --git a/inputmethods/unikeyboard/unikeyboardimpl.cpp b/inputmethods/unikeyboard/unikeyboardimpl.cpp index fe601e0..aa05b31 100644 --- a/inputmethods/unikeyboard/unikeyboardimpl.cpp +++ b/inputmethods/unikeyboard/unikeyboardimpl.cpp | |||
@@ -70,17 +70,18 @@ QPixmap *UniKeyboardImpl::icon() | |||
70 | { | 70 | { |
71 | if ( !icn ) | 71 | if ( !icn ) |
72 | icn = new QPixmap( (const char **)uni_xpm ); | 72 | icn = new QPixmap( (const char **)uni_xpm ); |
73 | return icn; | 73 | return icn; |
74 | } | 74 | } |
75 | 75 | ||
76 | QString UniKeyboardImpl::name() | 76 | QString UniKeyboardImpl::name() |
77 | { | 77 | { |
78 | return qApp->translate( "InputMethods", "Unicode" ); | 78 | // return qApp->translate( "InputMethods", "Unicode" ); |
79 | return "Unicode"; | ||
79 | } | 80 | } |
80 | 81 | ||
81 | void UniKeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 82 | void UniKeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
82 | { | 83 | { |
83 | if ( input ) | 84 | if ( input ) |
84 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 85 | QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |
85 | } | 86 | } |
86 | 87 | ||