summaryrefslogtreecommitdiffstats
path: root/lib/widgets/qcomboview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit330c33ab6f97b279737bf9527c9add7bb1475450 (patch)
tree85cb998d3077ae295d65944ebb4d0189fc660ead /lib/widgets/qcomboview.cpp
parent093de0db4fea89b3f94a2359c6981f353d035eb7 (diff)
downloadtdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz
tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/widgets/qcomboview.cpp')
-rw-r--r--lib/widgets/qcomboview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/widgets/qcomboview.cpp b/lib/widgets/qcomboview.cpp
index 6a53f92b..793c52d2 100644
--- a/lib/widgets/qcomboview.cpp
+++ b/lib/widgets/qcomboview.cpp
@@ -480,13 +480,13 @@ void QComboView::mousePressEvent( TQMouseEvent *e )
// and thus has a rect that doesn't fit the button.
arrowRect.setHeight( TQMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) );
- if ( childCount() && ( !editable() || arrowRect.tqcontains( e->pos() ) ) ) {
+ if ( childCount() && ( !editable() || arrowRect.contains( e->pos() ) ) ) {
d->arrowPressed = FALSE;
listView()->blockSignals( TRUE );
tqApp->sendEvent( listView(), e ); // trigger the listbox's autoscroll
listView()->blockSignals( FALSE );
popup();
- if ( arrowRect.tqcontains( e->pos() ) ) {
+ if ( arrowRect.contains( e->pos() ) ) {
d->arrowPressed = TRUE;
d->arrowDown = TRUE;
tqrepaint( FALSE );
@@ -895,7 +895,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
if ( !d->mouseWasInsidePopup ) {
// qWarning("!d->mouseWasInsidePopup");
TQPoint pos = e->pos();
- if ( TQT_TQRECT_OBJECT(d->listView()->rect()).tqcontains( pos ) )
+ if ( TQT_TQRECT_OBJECT(d->listView()->rect()).contains( pos ) )
d->mouseWasInsidePopup = TRUE;
// Check if arrow button should toggle
if ( d->arrowPressed ) {
@@ -905,7 +905,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, this,
TQStyle::SC_ComboBoxArrow);
arrowRect = TQStyle::tqvisualRect(arrowRect, this);
- if ( arrowRect.tqcontains( comboPos ) ) {
+ if ( arrowRect.contains( comboPos ) ) {
if ( !d->arrowDown ) {
d->arrowDown = TRUE;
tqrepaint( FALSE );
@@ -935,7 +935,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonRelease:
- if ( TQT_TQRECT_OBJECT(d->listView()->rect()).tqcontains( e->pos() ) ) {
+ if ( TQT_TQRECT_OBJECT(d->listView()->rect()).contains( e->pos() ) ) {
TQMouseEvent tmp( TQEvent::MouseButtonDblClick,
e->pos(), e->button(), e->state() ) ;
// will hide popup
@@ -955,7 +955,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonDblClick:
case TQEvent::MouseButtonPress:
- if ( !TQT_TQRECT_OBJECT(d->listView()->rect()).tqcontains( e->pos() ) ) {
+ if ( !TQT_TQRECT_OBJECT(d->listView()->rect()).contains( e->pos() ) ) {
TQPoint globalPos = d->listView()->mapToGlobal(e->pos());
if ( TQApplication::widgetAt( globalPos, TRUE ) == this ) {
d->discardNextMousePress = TRUE;
@@ -1085,7 +1085,7 @@ void QComboView::returnPressed()
TQListViewItem *c = 0;
bool doInsert = TRUE;
if ( !d->duplicatesEnabled ) {
- c = listView()->tqfindItem(s, 0);
+ c = listView()->findItem(s, 0);
if ( c )
doInsert = FALSE;
}
@@ -1457,7 +1457,7 @@ void QComboView::setLineEdit( TQLineEdit *edit )
void QComboView::setCurrentText( const TQString& txt )
{
TQListViewItem *i;
- i = listView()->tqfindItem(txt, 0);
+ i = listView()->findItem(txt, 0);
if ( i )
setCurrentItem( i );
else if ( d->ed )