summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/kasbar/kasbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/extensions/kasbar/kasbar.cpp')
-rw-r--r--kicker/extensions/kasbar/kasbar.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kicker/extensions/kasbar/kasbar.cpp b/kicker/extensions/kasbar/kasbar.cpp
index 87fc7c629..323a58150 100644
--- a/kicker/extensions/kasbar/kasbar.cpp
+++ b/kicker/extensions/kasbar/kasbar.cpp
@@ -80,7 +80,7 @@ KasBar::KasBar( Orientation o, TQWidget *parent, const char *name, WFlags f )
: TQWidget( parent, name, f ),
master_(0),
orient( o ),
- direction_( o == Qt::Horizontal ? TQBoxLayout::LeftToRight : TQBoxLayout::TopToBottom ),
+ direction_( o == TQt::Horizontal ? TQBoxLayout::LeftToRight : TQBoxLayout::TopToBottom ),
itemUnderMouse_( 0 ),
boxesPerLine_(10), // Temp value
inDrag( false ),
@@ -102,14 +102,14 @@ KasBar::KasBar( Orientation o, TQWidget *parent, const char *name, WFlags f )
setMouseTracking( true );
setMaxBoxes( 0 );
- connect( this, TQT_SIGNAL( configChanged() ), TQT_SLOT( repaint() ) );
+ connect( this, TQ_SIGNAL( configChanged() ), TQ_SLOT( repaint() ) );
}
KasBar::KasBar( Orientation o, KasBar *master, TQWidget *parent, const char *name, WFlags f )
: TQWidget( parent, name, f ),
master_(master),
orient( o ),
- direction_( o == Qt::Horizontal ? TQBoxLayout::LeftToRight : TQBoxLayout::TopToBottom ),
+ direction_( o == TQt::Horizontal ? TQBoxLayout::LeftToRight : TQBoxLayout::TopToBottom ),
itemUnderMouse_( 0 ),
boxesPerLine_(10), // Temp value
inDrag( false ),
@@ -130,7 +130,7 @@ KasBar::KasBar( Orientation o, KasBar *master, TQWidget *parent, const char *nam
items.setAutoDelete( true );
setMouseTracking( true );
setMaxBoxes( 0 );
- connect( master_, TQT_SIGNAL( configChanged() ), TQT_SLOT( repaint() ) );
+ connect( master_, TQ_SIGNAL( configChanged() ), TQ_SLOT( repaint() ) );
}
KasBar::~KasBar()
@@ -145,8 +145,8 @@ KasResources *KasBar::resources()
if ( isTopLevel() ) {
res = new KasResources( this );
- connect( res, TQT_SIGNAL( changed() ), TQT_SIGNAL( configChanged() ) );
- connect( this, TQT_SIGNAL( itemSizeChanged(int) ), res, TQT_SLOT( itemSizeChanged() ) );
+ connect( res, TQ_SIGNAL( changed() ), TQ_SIGNAL( configChanged() ) );
+ connect( this, TQ_SIGNAL( itemSizeChanged(int) ), res, TQ_SLOT( itemSizeChanged() ) );
return res;
}
@@ -218,8 +218,8 @@ void KasBar::setTransparent( bool enable )
kdDebug(1345) << "KasBar: Enabling transparency" << endl;
rootPix = new KRootPixmap( this );
- connect( rootPix, TQT_SIGNAL( backgroundUpdated(const TQPixmap &) ),
- this, TQT_SLOT( setBackground(const TQPixmap &) ) );
+ connect( rootPix, TQ_SIGNAL( backgroundUpdated(const TQPixmap &) ),
+ this, TQ_SLOT( setBackground(const TQPixmap &) ) );
rootPix->setCustomPainting( true );
@@ -318,9 +318,9 @@ void KasBar::setDirection( Direction dir )
return;
if ( ( dir == TQBoxLayout::LeftToRight ) || ( dir == TQBoxLayout::RightToLeft ) )
- orient = Qt::Horizontal;
+ orient = TQt::Horizontal;
else
- orient = Qt::Vertical;
+ orient = TQt::Vertical;
direction_ = dir;
emit directionChanged();
@@ -332,7 +332,7 @@ void KasBar::setOrientation( Orientation o )
if ( orient == o )
return;
- if ( o == Qt::Horizontal )
+ if ( o == TQt::Horizontal )
setDirection( TQBoxLayout::LeftToRight );
else
setDirection( TQBoxLayout::TopToBottom );
@@ -377,7 +377,7 @@ void KasBar::setDetached( bool detach )
TQSize KasBar::sizeHint( Orientation o, TQSize sz )
{
- if ( o == Qt::Horizontal )
+ if ( o == TQt::Horizontal )
setBoxesPerLine( sz.width() / itemExtent() );
else
setBoxesPerLine( sz.height() / itemExtent() );
@@ -396,7 +396,7 @@ TQSize KasBar::sizeHint( Orientation o, TQSize sz )
++r;
TQSize s;
- if( o == Qt::Horizontal ) {
+ if( o == TQt::Horizontal ) {
s.setWidth( c*itemExtent() );
s.setHeight( r*itemExtent() );
}
@@ -434,7 +434,7 @@ void KasBar::updateLayout()
++r;
TQSize sz;
- if ( orient == Qt::Horizontal )
+ if ( orient == TQt::Horizontal )
sz = TQSize( c * itemExtent(), r * itemExtent() );
else
sz = TQSize( r * itemExtent(), c * itemExtent() );
@@ -449,7 +449,7 @@ void KasBar::updateLayout()
TQRegion mask;
KasItem *i;
- if ( orient == Qt::Horizontal ) {
+ if ( orient == TQt::Horizontal ) {
for ( i = items.first(); i; i = items.next() ) {
int x = (items.at() % c) * itemExtent();
@@ -720,7 +720,7 @@ void KasBar::addTestItems()
i->setIcon( TDEGlobal::iconLoader()->loadIcon( "icons", TDEIcon::NoGroup, TDEIcon::SizeMedium ) );
i->setAnimation( resources()->startupAnimation() );
TQTimer *aniTimer = new TQTimer( i, "aniTimer" );
- connect( aniTimer, TQT_SIGNAL( timeout() ), i, TQT_SLOT( advanceAnimation() ) );
+ connect( aniTimer, TQ_SIGNAL( timeout() ), i, TQ_SLOT( advanceAnimation() ) );
aniTimer->start( 100 );
i->setShowAnimation( true );