summaryrefslogtreecommitdiffstats
path: root/plugins/src/inputmethods/simple/qsimpleinputcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/src/inputmethods/simple/qsimpleinputcontext.cpp')
-rw-r--r--plugins/src/inputmethods/simple/qsimpleinputcontext.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/src/inputmethods/simple/qsimpleinputcontext.cpp b/plugins/src/inputmethods/simple/qsimpleinputcontext.cpp
index e9b42c9ba..907ed1ade 100644
--- a/plugins/src/inputmethods/simple/qsimpleinputcontext.cpp
+++ b/plugins/src/inputmethods/simple/qsimpleinputcontext.cpp
@@ -87,7 +87,7 @@ class Cmp
{
public:
bool operator () (const TQComposeTableElement &lhs, const TQComposeTableElement &rhs) const {
- for ( size_t i=0; i < QT_KEYSETQUENCE_MAX_LEN; i++ ) {
+ for ( size_t i=0; i < QT_KEYSEQUENCE_MAX_LEN; i++ ) {
if ( lhs.keys[i] < rhs.keys[i] ) return TRUE;
else
if ( lhs.keys[i] > rhs.keys[i] ) return FALSE;
@@ -95,8 +95,8 @@ public:
return FALSE;
}
- bool operator () (const TQComposeTableElement &lhs, const uint rhs[QT_KEYSETQUENCE_MAX_LEN]) const {
- for ( size_t i=0; i < QT_KEYSETQUENCE_MAX_LEN; i++ ) {
+ bool operator () (const TQComposeTableElement &lhs, const uint rhs[QT_KEYSEQUENCE_MAX_LEN]) const {
+ for ( size_t i=0; i < QT_KEYSEQUENCE_MAX_LEN; i++ ) {
if ( lhs.keys[i] < rhs[i] ) return TRUE;
else
if ( lhs.keys[i] > rhs[i] ) return FALSE;
@@ -146,10 +146,10 @@ bool TQSimpleInputContext::filterEvent( const TQEvent *event )
// Store value
int nCompose = 0;
- while ( composeBuffer[nCompose] != 0 && nCompose < QT_KEYSETQUENCE_MAX_LEN )
+ while ( composeBuffer[nCompose] != 0 && nCompose < QT_KEYSEQUENCE_MAX_LEN )
nCompose++;
- if ( nCompose == QT_KEYSETQUENCE_MAX_LEN ) {
+ if ( nCompose == QT_KEYSEQUENCE_MAX_LEN ) {
clearComposeBuffer();
nCompose = 0;
}
@@ -247,7 +247,7 @@ bool TQSimpleInputContext::checkComposeTable( uint* composeBuffer, const TQCompo
}
// check if compose buffer is matched
- for ( int i=0; i < QT_KEYSETQUENCE_MAX_LEN; i++ ) {
+ for ( int i=0; i < QT_KEYSEQUENCE_MAX_LEN; i++ ) {
// check if partial match
if ( composeBuffer[i] == 0 && p->keys[i] ) {