summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/widgets/tqcombobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqcombobox.cpp')
-rw-r--r--tqtinterface/qt4/src/widgets/tqcombobox.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqcombobox.cpp b/tqtinterface/qt4/src/widgets/tqcombobox.cpp
index 6305993..382258b 100644
--- a/tqtinterface/qt4/src/widgets/tqcombobox.cpp
+++ b/tqtinterface/qt4/src/widgets/tqcombobox.cpp
@@ -171,7 +171,7 @@
\value AtTop insert the string as the first item in the combobox.
- \value AtCurrent tqreplace the previously selected item with the
+ \value AtCurrent replace the previously selected item with the
string the user has entered.
\value AtBottom insert the string as the last item in the
@@ -239,7 +239,7 @@
This signal is used for editable comboboxes. It is emitted
whenever the contents of the text entry field changes. \a string
- tqcontains the new text.
+ contains the new text.
*/
/*!
@@ -356,7 +356,7 @@ public:
static inline TQString escapedComboString(const TQString &str)
{
TQString stringToReturn = str;
- return stringToReturn.tqreplace('&', "&&");
+ return stringToReturn.replace('&', "&&");
}
class TQComboBoxPopupItem : public TQCustomMenuItem
@@ -955,7 +955,7 @@ TQString TQComboBox::text( int index ) const
return d->listBox()->text( index );
} else {
TQString retText = d->popup()->text(index);
- retText.tqreplace("&&", "&");
+ retText.replace("&&", "&");
return retText;
}
}
@@ -1374,7 +1374,7 @@ void TQComboBox::mousePressEvent( TQMouseEvent *e )
// and thus has a rect that doesn't fit the button.
arrowRect.setHeight( TQMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) );
- if ( count() && ( !editable() || arrowRect.tqcontains( e->pos() ) ) ) {
+ if ( count() && ( !editable() || arrowRect.contains( e->pos() ) ) ) {
d->arrowPressed = FALSE;
if ( d->usingListBox() ) {
@@ -1383,7 +1383,7 @@ void TQComboBox::mousePressEvent( TQMouseEvent *e )
listBox()->setCurrentItem(d->current);
listBox()->blockSignals( FALSE );
popup();
- if ( arrowRect.tqcontains( e->pos() ) ) {
+ if ( arrowRect.contains( e->pos() ) ) {
d->arrowPressed = TRUE;
d->arrowDown = TRUE;
tqrepaint( FALSE );
@@ -1625,7 +1625,7 @@ void TQComboBox::popup()
lb->blockSignals( TRUE );
TQListBoxItem* currentLBItem = 0;
if ( editable() && currentText() != text( currentItem() ) )
- currentLBItem = lb->tqfindItem( currentText() );
+ currentLBItem = lb->findItem( currentText() );
currentLBItem = currentLBItem ? currentLBItem : lb->item( d->current );
@@ -1781,7 +1781,7 @@ bool TQComboBox::eventFilter( TQObject *object, TQEvent *event )
case TQEvent::MouseMove:
if ( !d->mouseWasInsidePopup ) {
TQPoint pos = e->pos();
- if ( TQT_TQRECT_OBJECT(d->listBox()->rect()).tqcontains( pos ) )
+ if ( TQT_TQRECT_OBJECT(d->listBox()->rect()).contains( pos ) )
d->mouseWasInsidePopup = TRUE;
// Check if arrow button should toggle
if ( d->arrowPressed ) {
@@ -1791,7 +1791,7 @@ bool TQComboBox::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 );
@@ -1820,7 +1820,7 @@ bool TQComboBox::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonRelease:
- if ( TQT_TQRECT_OBJECT(d->listBox()->rect()).tqcontains( e->pos() ) ) {
+ if ( TQT_TQRECT_OBJECT(d->listBox()->rect()).contains( e->pos() ) ) {
TQMouseEvent tmp( TQEvent::MouseButtonDblClick,
e->pos(), e->button(), e->state() ) ;
// will hide popup
@@ -1840,7 +1840,7 @@ bool TQComboBox::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonDblClick:
case TQEvent::MouseButtonPress:
- if ( !TQT_TQRECT_OBJECT(d->listBox()->rect()).tqcontains( e->pos() ) ) {
+ if ( !TQT_TQRECT_OBJECT(d->listBox()->rect()).contains( e->pos() ) ) {
TQPoint globalPos = d->listBox()->mapToGlobal(e->pos());
if ( TQApplication::widgetAt( globalPos, TRUE ) == this ) {
d->discardNextMousePress = TRUE;
@@ -1892,7 +1892,7 @@ bool TQComboBox::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonDblClick:
case TQEvent::MouseButtonPress:
- if ( !TQT_TQRECT_OBJECT(d->popup()->rect()).tqcontains( e->pos() ) ) {
+ if ( !TQT_TQRECT_OBJECT(d->popup()->rect()).contains( e->pos() ) ) {
d->poppedUp = FALSE;
d->arrowDown = FALSE;
// remove filter, event will take down popup: