summaryrefslogtreecommitdiffstats
path: root/kdeui/kcombobox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeui/kcombobox.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kcombobox.cpp')
-rw-r--r--kdeui/kcombobox.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kdeui/kcombobox.cpp b/kdeui/kcombobox.cpp
index c3cc4c402..e4188c9c8 100644
--- a/kdeui/kcombobox.cpp
+++ b/kdeui/kcombobox.cpp
@@ -91,7 +91,7 @@ void KComboBox::init()
}
-bool KComboBox::contains( const TQString& _text ) const
+bool KComboBox::tqcontains( const TQString& _text ) const
{
if ( _text.isEmpty() )
return false;
@@ -163,7 +163,7 @@ void KComboBox::makeCompletion( const TQString& text )
if( text.isNull() || !listBox() )
return;
- const int index = listBox()->index( listBox()->findItem( text ) );
+ const int index = listBox()->index( listBox()->tqfindItem( text ) );
if( index >= 0 )
setCurrentItem( index );
}
@@ -508,7 +508,7 @@ void KHistoryCombo::addToHistory( const TQString& item )
// anymore available at all in the combobox.
const TQString rmItem = text( rmIndex );
removeItem( rmIndex );
- if ( useComp && !contains( rmItem ) )
+ if ( useComp && !tqcontains( rmItem ) )
completionObject()->removeItem( rmItem );
}
@@ -616,12 +616,12 @@ void KHistoryCombo::keyPressEvent( TQKeyEvent *e )
KKey event_key( e );
// going up in the history, rotating when reaching TQListBox::count()
- if ( KStdAccel::rotateUp().contains(event_key) )
+ if ( KStdAccel::rotateUp().tqcontains(event_key) )
rotateUp();
// going down in the history, no rotation possible. Last item will be
// the text that was in the lineedit before Up was called.
- else if ( KStdAccel::rotateDown().contains(event_key) )
+ else if ( KStdAccel::rotateDown().tqcontains(event_key) )
rotateDown();
else
KComboBox::keyPressEvent( e );
@@ -764,14 +764,14 @@ KHistoryComboEditor::KHistoryComboEditor( const TQStringList& entries, TQWidget
new TQListViewItem( m_pListView, *it );
}
- m_pListView->setMinimumSize( m_pListView->sizeHint() );
+ m_pListView->setMinimumSize( m_pListView->tqsizeHint() );
connect( m_pListView, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ),
this, TQT_SLOT( slotSelectionChanged( TQListViewItem * ) ) );
enableButton( KDialogBase::User1, false );
- resize( sizeHint() );
+ resize( tqsizeHint() );
}
KHistoryComboEditor::~KHistoryComboEditor()