summaryrefslogtreecommitdiffstats
path: root/kdeui/kpassivepopup.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/kpassivepopup.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/kpassivepopup.cpp')
-rw-r--r--kdeui/kpassivepopup.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kdeui/kpassivepopup.cpp b/kdeui/kpassivepopup.cpp
index 4b870c794..69f2bd1aa 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->setAlignment( AlignLeft );
+ ttlIcon->tqsetAlignment( 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->setAlignment( Qt::AlignHCenter );
+ ttl->tqsetAlignment( Qt::AlignHCenter );
if ( hb )
hb->setStretchFactor( ttl, 10 ); // enforce centering
}
if ( !text.isEmpty() ) {
msg = new TQLabel( text, vb, "msg_label" );
- msg->setAlignment( AlignLeft );
+ msg->tqsetAlignment( AlignLeft );
}
return vb;
@@ -194,8 +194,8 @@ void KPassivePopup::mouseReleaseEvent( TQMouseEvent *e )
void KPassivePopup::show()
{
- if ( size() != sizeHint() )
- resize( sizeHint() );
+ if ( size() != tqsizeHint() )
+ resize( tqsizeHint() );
if ( d->fixedPosition.isNull() )
positionSelf();
@@ -303,7 +303,7 @@ void KPassivePopup::moveNear( TQRect target )
if( d->popupStyle == Balloon )
{
- // find a point to anchor to
+ // tqfind 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-geometry for screen our anchor is on
- // (geometry can differ from screen to screen!
+ // get screen-tqgeometry for screen our anchor is on
+ // (tqgeometry 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 mask( width(), height(), true );
- TQPainter p( &mask );
+ TQBitmap tqmask( width(), height(), true );
+ TQPainter p( &tqmask );
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(mask);
+ setMask(tqmask);
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() ) );