~ubuntu-branches/ubuntu/maverick/uim/maverick

« back to all changes in this revision

Viewing changes to qt/immodule-quiminputcontext_with_slave.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2008-06-25 19:56:33 UTC
  • mfrom: (3.1.18 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080625195633-8jljph4rfq00l8o7
Tags: 1:1.5.1-2
* uim-tcode: provide tutcode-custom.scm, tutcode-bushudic.scm
  and tutcode-rule.scm (Closes: #482659)
* Fix FTBFS: segv during compile (Closes: #483078).
  I personally think this bug is not specific for uim but is a optimization
  problem on gcc-4.3.1. (https://bugs.freedesktop.org/show_bug.cgi?id=16477)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
3
 
Copyright (c) 2003-2006 uim Project http://uim.freedesktop.org/
 
3
Copyright (c) 2003-2008 uim Project http://code.google.com/p/uim/
4
4
 
5
5
All rights reserved.
6
6
 
30
30
SUCH DAMAGE.
31
31
 
32
32
*/
 
33
#include <config.h>
 
34
 
 
35
#include <qinputcontextfactory.h>
 
36
 
 
37
#include "uim/uim.h"
 
38
 
 
39
#include "immodule-quiminputcontext.h"
33
40
#include "immodule-quiminputcontext_with_slave.h"
34
41
 
35
 
#include <qinputcontextfactory.h>
36
 
 
37
42
QUimInputContextWithSlave::QUimInputContextWithSlave( const char *imname, const char *lang )
38
43
        : QUimInputContext( imname, lang )
39
44
{
50
55
}
51
56
 
52
57
QUimInputContextWithSlave::~QUimInputContextWithSlave()
53
 
{}
 
58
{
 
59
}
54
60
 
55
61
void QUimInputContextWithSlave::setFocus()
56
62
{
91
97
 
92
98
bool QUimInputContextWithSlave::filterEvent( const QEvent *event )
93
99
{
94
 
#if 0
95
 
    // when isComposing==false, event is forwarded to slave ic
96
 
    if ( ! isComposing() && slave && slave->filterEvent( event ) )
97
 
        return true;
98
 
 
99
 
    // else, event is dealt with uim-qt
100
 
    return QUimInputContext::filterEvent( event );
101
 
#else
102
100
    if ( ! QUimInputContext::filterEvent( event ) ) {
103
101
      if ( ! isComposing() && slave && slave->filterEvent( event ) )
104
102
        return true;
107
105
    }
108
106
 
109
107
    return true;
110
 
#endif
111
108
}
112
109
 
113
110
void QUimInputContextWithSlave::destroyInputContext()