diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-19 01:42:14 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-19 01:42:14 +0000 |
commit | 8155225c9be993acc0512956416d195edfef4eb9 (patch) | |
tree | de4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /khotkeys/kcontrol/condition_list_widget.cpp | |
parent | 364641b8e0279758d236af39abd138d379328a19 (diff) | |
download | tdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip |
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/kcontrol/condition_list_widget.cpp')
-rw-r--r-- | khotkeys/kcontrol/condition_list_widget.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/khotkeys/kcontrol/condition_list_widget.cpp b/khotkeys/kcontrol/condition_list_widget.cpp index 86ff8f47c..3076883ca 100644 --- a/khotkeys/kcontrol/condition_list_widget.cpp +++ b/khotkeys/kcontrol/condition_list_widget.cpp @@ -165,9 +165,9 @@ void Condition_list_widget::new_selected( int type_P ) parent = NULL; } } - if( parent == NULL && selected_item != NULL && selected_item->parent() != NULL ) + if( parent == NULL && selected_item != NULL && selected_item->tqparent() != NULL ) { - parent = static_cast< Condition_list_item* >( selected_item->parent()); + parent = static_cast< Condition_list_item* >( selected_item->tqparent()); after = selected_item; } Condition_list_base* parent_cond = parent @@ -217,8 +217,8 @@ void Condition_list_widget::copy_pressed() return; conditions_listview->setSelected( create_listview_item( selected_item->condition()->copy( selected_item->condition()->parent()), - selected_item->parent() ? NULL : conditions_listview, - static_cast< Condition_list_item* >( selected_item->parent()), + selected_item->tqparent() ? NULL : conditions_listview, + static_cast< Condition_list_item* >( selected_item->tqparent()), selected_item, true ), true ); } @@ -321,14 +321,14 @@ void Condition_list_widget::edit_listview_item( Condition_list_item* item_P ) { Condition* old_cond = item_P->condition(); item_P->set_condition( new_condition ); - int pos = conditions.find( old_cond ); + int pos = conditions.tqfind( old_cond ); if( pos >= 0 ) { conditions.remove( pos ); // we own it conditions.insert( pos, new_condition ); } item_P->widthChanged( 0 ); - conditions_listview->repaintItem( item_P ); + conditions_listview->tqrepaintItem( item_P ); } #ifdef KHOTKEYS_DEBUG kdDebug( 1217 ) << "Condition_list_widget::edit_listview_item():" << endl; |