summaryrefslogtreecommitdiffstats
path: root/kicker/applets/lockout/lockout.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kicker/applets/lockout/lockout.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/applets/lockout/lockout.cpp')
-rw-r--r--kicker/applets/lockout/lockout.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kicker/applets/lockout/lockout.cpp b/kicker/applets/lockout/lockout.cpp
index 3bc53efae..c0f0f30c8 100644
--- a/kicker/applets/lockout/lockout.cpp
+++ b/kicker/applets/lockout/lockout.cpp
@@ -63,13 +63,13 @@ Lockout::Lockout( const TQString& configFile, TQWidget *parent, const char *name
setBackgroundOrigin( AncestorOrigin );
if ( orientation() == Horizontal )
- layout = new TQBoxLayout( this, TQBoxLayout::TopToBottom );
+ tqlayout = new TQBoxLayout( this, TQBoxLayout::TopToBottom );
else
- layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
+ tqlayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
- layout->setAutoAdd( true );
- layout->setMargin( 0 );
- layout->setSpacing( 0 );
+ tqlayout->setAutoAdd( true );
+ tqlayout->setMargin( 0 );
+ tqlayout->setSpacing( 0 );
lockButton = new SimpleButton( this, "lock");
logoutButton = new SimpleButton( this, "logout");
@@ -94,8 +94,8 @@ Lockout::Lockout( const TQString& configFile, TQWidget *parent, const char *name
if (!kapp->authorize("logout"))
logoutButton->hide();
- lockButton->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding));
- logoutButton->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding));
+ lockButton->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding));
+ logoutButton->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding));
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
@@ -113,31 +113,31 @@ Lockout::~Lockout()
// direction and wasting a lot of space.
void Lockout::checkLayout( int height ) const
{
- TQSize s = minimumSizeHint();
- TQBoxLayout::Direction direction = layout->direction();
+ TQSize s = tqminimumSizeHint();
+ TQBoxLayout::Direction direction = tqlayout->direction();
if ( direction == TQBoxLayout::LeftToRight &&
( ( orientation() == Vertical && s.width() - 2 >= height ) ||
( orientation() == Horizontal && s.width() - 2 < height ) ) ) {
- layout->setDirection( TQBoxLayout::TopToBottom );
+ tqlayout->setDirection( TQBoxLayout::TopToBottom );
}
else if ( direction == TQBoxLayout::TopToBottom &&
( ( orientation() == Vertical && s.height() - 2 < height ) ||
( orientation() == Horizontal && s.height() - 2 >= height ) ) ) {
- layout->setDirection( TQBoxLayout::LeftToRight );
+ tqlayout->setDirection( TQBoxLayout::LeftToRight );
}
}
int Lockout::widthForHeight( int height ) const
{
checkLayout( height );
- return sizeHint().width();
+ return tqsizeHint().width();
}
int Lockout::heightForWidth( int width ) const
{
checkLayout( width );
- return sizeHint().height();
+ return tqsizeHint().height();
}
void Lockout::lock()
@@ -177,9 +177,9 @@ void Lockout::mouseMoveEvent(TQMouseEvent* e)
void Lockout::propagateMouseEvent(TQMouseEvent* e)
{
if ( !isTopLevel() ) {
- TQMouseEvent me(e->type(), mapTo( topLevelWidget(), e->pos() ),
+ TQMouseEvent me(e->type(), mapTo( tqtopLevelWidget(), e->pos() ),
e->globalPos(), e->button(), e->state() );
- TQApplication::sendEvent( topLevelWidget(), &me );
+ TQApplication::sendEvent( tqtopLevelWidget(), &me );
}
}