summaryrefslogtreecommitdiffstats
path: root/khotkeys/shared/triggers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'khotkeys/shared/triggers.cpp')
-rw-r--r--khotkeys/shared/triggers.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/khotkeys/shared/triggers.cpp b/khotkeys/shared/triggers.cpp
index 115bc6687..1b6e903b7 100644
--- a/khotkeys/shared/triggers.cpp
+++ b/khotkeys/shared/triggers.cpp
@@ -197,13 +197,13 @@ Window_trigger::~Window_trigger()
void Window_trigger::init()
{
kdDebug( 1217 ) << "Window_trigger::init()" << endl;
- connect( windows_handler, TQT_SIGNAL( window_added( WId )), this, TQT_SLOT( window_added( WId )));
- connect( windows_handler, TQT_SIGNAL( window_removed( WId )), this, TQT_SLOT( window_removed( WId )));
+ connect( windows_handler, TQ_SIGNAL( window_added( WId )), this, TQ_SLOT( window_added( WId )));
+ connect( windows_handler, TQ_SIGNAL( window_removed( WId )), this, TQ_SLOT( window_removed( WId )));
if( window_actions & ( WINDOW_ACTIVATES | WINDOW_DEACTIVATES /*| WINDOW_DISAPPEARS*/ ))
- connect( windows_handler, TQT_SIGNAL( active_window_changed( WId )),
- this, TQT_SLOT( active_window_changed( WId )));
- connect( windows_handler, TQT_SIGNAL( window_changed( WId, unsigned int )),
- this, TQT_SLOT( window_changed( WId, unsigned int )));
+ connect( windows_handler, TQ_SIGNAL( active_window_changed( WId )),
+ this, TQ_SLOT( active_window_changed( WId )));
+ connect( windows_handler, TQ_SIGNAL( window_changed( WId, unsigned int )),
+ this, TQ_SLOT( window_changed( WId, unsigned int )));
}
void Window_trigger::activate( bool activate_P )
@@ -277,6 +277,7 @@ void Window_trigger::window_changed( WId window_P, unsigned int dirty_P )
bool matches = windows()->match( Window_data( window_P ));
existing_windows[ window_P ] = matches;
if( active && matches && !was_match )
+ {
if( window_actions & WINDOW_APPEARS )
{
windows_handler->set_action_window( window_P );
@@ -287,6 +288,7 @@ void Window_trigger::window_changed( WId window_P, unsigned int dirty_P )
windows_handler->set_action_window( window_P );
data->execute();
}
+ }
kdDebug( 1217 ) << "Window_trigger::w_changed() : " << was_match << "|" << matches << endl;
}
@@ -333,7 +335,7 @@ Gesture_trigger::Gesture_trigger( TDEConfig& cfg_P, Action_data* data_P )
Gesture_trigger::~Gesture_trigger()
{
- gesture_handler->unregister_handler( this, TQT_SLOT( handle_gesture( const TQString&, WId )));
+ gesture_handler->unregister_handler( this, TQ_SLOT( handle_gesture( const TQString&, WId )));
}
void Gesture_trigger::cfg_write( TDEConfig& cfg_P ) const
@@ -366,9 +368,9 @@ void Gesture_trigger::handle_gesture( const TQString &gesture_P, WId window_P )
void Gesture_trigger::activate( bool activate_P )
{
if( activate_P )
- gesture_handler->register_handler( this, TQT_SLOT( handle_gesture( const TQString&, WId )));
+ gesture_handler->register_handler( this, TQ_SLOT( handle_gesture( const TQString&, WId )));
else
- gesture_handler->unregister_handler( this, TQT_SLOT( handle_gesture( const TQString&, WId )));
+ gesture_handler->unregister_handler( this, TQ_SLOT( handle_gesture( const TQString&, WId )));
}