summaryrefslogtreecommitdiffstats
path: root/khotkeys/shared/input.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /khotkeys/shared/input.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/shared/input.cpp')
-rw-r--r--khotkeys/shared/input.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/khotkeys/shared/input.cpp b/khotkeys/shared/input.cpp
index f9bfec6d3..90e789282 100644
--- a/khotkeys/shared/input.cpp
+++ b/khotkeys/shared/input.cpp
@@ -55,7 +55,7 @@ Kbd::~Kbd()
void Kbd::insert_item( const KShortcut& shortcut_P, Kbd_receiver* receiver_P )
{
- Receiver_data& rcv = receivers[ receiver_P ];
+ Receiver_data& rcv = tqreceivers[ receiver_P ];
rcv.shortcuts.append( shortcut_P );
if( rcv.active )
grab_shortcut( shortcut_P );
@@ -63,17 +63,17 @@ void Kbd::insert_item( const KShortcut& shortcut_P, Kbd_receiver* receiver_P )
void Kbd::remove_item( const KShortcut& shortcut_P, Kbd_receiver* receiver_P )
{
- Receiver_data& rcv = receivers[ receiver_P ];
+ Receiver_data& rcv = tqreceivers[ receiver_P ];
rcv.shortcuts.remove( shortcut_P );
if( rcv.active )
ungrab_shortcut( shortcut_P );
if( rcv.shortcuts.count() == 0 )
- receivers.remove( receiver_P );
+ tqreceivers.remove( receiver_P );
}
void Kbd::activate_receiver( Kbd_receiver* receiver_P )
{
- Receiver_data& rcv = receivers[ receiver_P ];
+ Receiver_data& rcv = tqreceivers[ receiver_P ];
if( rcv.active )
return;
rcv.active = true;
@@ -85,7 +85,7 @@ void Kbd::activate_receiver( Kbd_receiver* receiver_P )
void Kbd::deactivate_receiver( Kbd_receiver* receiver_P )
{
- Receiver_data& rcv = receivers[ receiver_P ];
+ Receiver_data& rcv = tqreceivers[ receiver_P ];
if( !rcv.active )
return;
rcv.active = false;
@@ -97,7 +97,7 @@ void Kbd::deactivate_receiver( Kbd_receiver* receiver_P )
void Kbd::grab_shortcut( const KShortcut& shortcut_P )
{
- if( grabs.contains( shortcut_P ))
+ if( grabs.tqcontains( shortcut_P ))
++grabs[ shortcut_P ];
else
{
@@ -117,7 +117,7 @@ void Kbd::grab_shortcut( const KShortcut& shortcut_P )
void Kbd::ungrab_shortcut( const KShortcut& shortcut_P )
{
- if( !grabs.contains( shortcut_P ))
+ if( !grabs.tqcontains( shortcut_P ))
return;
if( --grabs[ shortcut_P ] == 0 )
{
@@ -142,12 +142,12 @@ void Kbd::key_slot( TQString key_P )
{
kdDebug( 1217 ) << "Key pressed:" << key_P << endl;
KShortcut shortcut( key_P );
- if( !grabs.contains( shortcut ))
+ if( !grabs.tqcontains( shortcut ))
return;
- for( TQMap< Kbd_receiver*, Receiver_data >::ConstIterator it = receivers.begin();
- it != receivers.end();
+ for( TQMap< Kbd_receiver*, Receiver_data >::ConstIterator it = tqreceivers.begin();
+ it != tqreceivers.end();
++it )
- if( ( *it ).shortcuts.contains( shortcut ) && ( *it ).active
+ if( ( *it ).shortcuts.tqcontains( shortcut ) && ( *it ).active
&& it.key()->handle_key( shortcut ))
return;
}