summaryrefslogtreecommitdiff
path: root/inputmethods/kjumpx/keyboardimpl.cpp
Unidiff
Diffstat (limited to 'inputmethods/kjumpx/keyboardimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/kjumpx/keyboardimpl.cpp3
1 files changed, 2 insertions, 1 deletions
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
@@ -46,49 +46,50 @@ KeyboardImpl::~KeyboardImpl()
46} 46}
47 47
48QWidget *KeyboardImpl::inputMethod( QWidget *parent, Qt::WFlags f ) 48QWidget *KeyboardImpl::inputMethod( QWidget *parent, Qt::WFlags f )
49{ 49{
50 if ( !input ) 50 if ( !input )
51 input = new Keyboard( parent, "Keyboard", f ); 51 input = new Keyboard( parent, "Keyboard", f );
52 return input; 52 return input;
53} 53}
54 54
55void KeyboardImpl::resetState() 55void KeyboardImpl::resetState()
56{ 56{
57 if ( input ) 57 if ( input )
58 input->resetState(); 58 input->resetState();
59} 59}
60 60
61QPixmap *KeyboardImpl::icon() 61QPixmap *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
68QString KeyboardImpl::name() 68QString KeyboardImpl::name()
69{ 69{
70 return qApp->translate( "InputMethods", "KJumpX" ); 70 // return qApp->translate( "InputMethods", "KJumpX" );
71 return "KJumpX";
71} 72}
72 73
73void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) 74void 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
79#ifndef QT_NO_COMPONENT 80#ifndef QT_NO_COMPONENT
80QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 81QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
81{ 82{
82 *iface = 0; 83 *iface = 0;
83 if ( uuid == IID_QUnknown ) 84 if ( uuid == IID_QUnknown )
84 *iface = this; 85 *iface = this;
85 else if ( uuid == IID_InputMethod ) 86 else if ( uuid == IID_InputMethod )
86 *iface = this; 87 *iface = this;
87 88
88 if ( *iface ) 89 if ( *iface )
89 (*iface)->addRef(); 90 (*iface)->addRef();
90 return QS_OK; 91 return QS_OK;
91} 92}
92 93
93Q_EXPORT_INTERFACE() 94Q_EXPORT_INTERFACE()
94{ 95{