summaryrefslogtreecommitdiffstats
path: root/lib/widgets/qcomboview.cpp
diff options
context:
space:
mode:
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 )