diff options
Diffstat (limited to 'kdeui/kpassivepopup.cpp')
-rw-r--r-- | kdeui/kpassivepopup.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kdeui/kpassivepopup.cpp b/kdeui/kpassivepopup.cpp index 69f2bd1aa..4b870c794 100644 --- a/kdeui/kpassivepopup.cpp +++ b/kdeui/kpassivepopup.cpp @@ -138,7 +138,7 @@ TQVBox * KPassivePopup::standardView( const TQString& caption, hb->setSpacing( KDialog::spacingHint() ); ttlIcon = new TQLabel( hb, "title_icon" ); ttlIcon->setPixmap( icon ); - ttlIcon->tqsetAlignment( AlignLeft ); + ttlIcon->setAlignment( AlignLeft ); } if ( !caption.isEmpty() ) { @@ -146,14 +146,14 @@ TQVBox * KPassivePopup::standardView( const TQString& caption, TQFont fnt = ttl->font(); fnt.setBold( true ); ttl->setFont( fnt ); - ttl->tqsetAlignment( Qt::AlignHCenter ); + ttl->setAlignment( Qt::AlignHCenter ); if ( hb ) hb->setStretchFactor( ttl, 10 ); // enforce centering } if ( !text.isEmpty() ) { msg = new TQLabel( text, vb, "msg_label" ); - msg->tqsetAlignment( AlignLeft ); + msg->setAlignment( AlignLeft ); } return vb; @@ -194,8 +194,8 @@ void KPassivePopup::mouseReleaseEvent( TQMouseEvent *e ) void KPassivePopup::show() { - if ( size() != tqsizeHint() ) - resize( tqsizeHint() ); + if ( size() != sizeHint() ) + resize( sizeHint() ); if ( d->fixedPosition.isNull() ) positionSelf(); @@ -303,7 +303,7 @@ void KPassivePopup::moveNear( TQRect target ) if( d->popupStyle == Balloon ) { - // tqfind a point to anchor to + // find a point to anchor to if( x + w > r.width() ){ x = x + target.width(); } @@ -356,8 +356,8 @@ void KPassivePopup::paintEvent( TQPaintEvent* pe ) void KPassivePopup::updateMask() { - // get screen-tqgeometry for screen our anchor is on - // (tqgeometry can differ from screen to screen! + // get screen-geometry for screen our anchor is on + // (geometry can differ from screen to screen! TQRect deskRect = KGlobalSettings::desktopGeometry(d->anchor); int xh = 70, xl = 40; @@ -376,8 +376,8 @@ void KPassivePopup::updateMask() TQPoint( width() - 50, height() - 50 ) }; - TQBitmap tqmask( width(), height(), true ); - TQPainter p( &tqmask ); + TQBitmap mask( width(), height(), true ); + TQPainter p( &mask ); TQBrush brush( Qt::white, Qt::SolidPattern ); p.setBrush( brush ); @@ -421,7 +421,7 @@ void KPassivePopup::updateMask() d->surround.resize( z + 1 ); d->surround.setPoint( z, d->surround[0] ); p.drawPolygon( d->surround ); - setMask(tqmask); + setMask(mask); move( right ? d->anchor.x() - width() + 20 : ( d->anchor.x() < 11 ? 11 : d->anchor.x() - 20 ), bottom ? d->anchor.y() - height() : ( d->anchor.y() < 11 ? 11 : d->anchor.y() ) ); |