diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /khotkeys/shared/khlistbox.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/shared/khlistbox.cpp')
-rw-r--r-- | khotkeys/shared/khlistbox.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/khotkeys/shared/khlistbox.cpp b/khotkeys/shared/khlistbox.cpp index 694fb658b..ff6d96221 100644 --- a/khotkeys/shared/khlistbox.cpp +++ b/khotkeys/shared/khlistbox.cpp @@ -21,19 +21,19 @@ namespace KHotKeys { -KHListBox::KHListBox( QWidget* parent_P, const char* name_P ) - : QListBox( parent_P, name_P ), saved_current_item( NULL ), +KHListBox::KHListBox( TQWidget* parent_P, const char* name_P ) + : TQListBox( parent_P, name_P ), saved_current_item( NULL ), in_clear( false ), force_select( false ) { - connect( this, SIGNAL( selectionChanged( QListBoxItem* )), - SLOT( slot_selection_changed( QListBoxItem* ))); - connect( this, SIGNAL( currentChanged( QListBoxItem* )), - SLOT( slot_current_changed( QListBoxItem* ))); + connect( this, TQT_SIGNAL( selectionChanged( TQListBoxItem* )), + TQT_SLOT( slot_selection_changed( TQListBoxItem* ))); + connect( this, TQT_SIGNAL( currentChanged( TQListBoxItem* )), + TQT_SLOT( slot_current_changed( TQListBoxItem* ))); // CHECKME grrr - connect( this, SIGNAL( selectionChanged()), - SLOT( slot_selection_changed())); - connect( &insert_select_timer, SIGNAL( timeout()), - SLOT( slot_insert_select())); + connect( this, TQT_SIGNAL( selectionChanged()), + TQT_SLOT( slot_selection_changed())); + connect( &insert_select_timer, TQT_SIGNAL( timeout()), + TQT_SLOT( slot_insert_select())); } void KHListBox::slot_selection_changed() @@ -44,7 +44,7 @@ void KHListBox::slot_selection_changed() setSelected( saved_current_item, true ); } -void KHListBox::slot_selection_changed( QListBoxItem* item_P ) +void KHListBox::slot_selection_changed( TQListBoxItem* item_P ) { if( item_P == saved_current_item ) return; @@ -53,7 +53,7 @@ void KHListBox::slot_selection_changed( QListBoxItem* item_P ) emit current_changed( saved_current_item ); } -void KHListBox::slot_current_changed( QListBoxItem* item_P ) +void KHListBox::slot_current_changed( TQListBoxItem* item_P ) { insert_select_timer.stop(); if( item_P == saved_current_item ) @@ -67,19 +67,19 @@ void KHListBox::slot_current_changed( QListBoxItem* item_P ) void KHListBox::clear() { in_clear = true; - QListBox::clear(); + TQListBox::clear(); in_clear = false; slot_selection_changed( NULL ); } // neni virtual :(( a vubec nefunguje -void KHListBox::insertItem( QListBoxItem* item_P ) +void KHListBox::insertItem( TQListBoxItem* item_P ) { bool set = false; if( !in_clear ) set = count() == 0; - QListBox::insertItem( item_P ); + TQListBox::insertItem( item_P ); if( set && force_select ) { bool block = signalsBlocked(); @@ -90,7 +90,7 @@ void KHListBox::insertItem( QListBoxItem* item_P ) } } -// items are often inserted using the QListBoxItem constructor, +// items are often inserted using the TQListBoxItem constructor, // which means that a derived class are not yet fully created void KHListBox::slot_insert_select() { |